Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As of Spring '21 sandbox testing22:

  • Formulas CAN be used in trigger conditions on before save flow triggers

  • Formulas CAN be used in trigger conditions in after save flow triggers

  • Formulas CAN be used in decisions in before save flow triggers IF the Resource uses the Prior Value (eg {!$Record__Prior.IsActive__c}). But you can NOT use formula values from the newly changed record.

  • Formulas CAN be used in decisions in after save flow triggers

  • Formulas CAN be used as the source value in Assignment Updates in before save flow triggers IF the Value uses the Prior Value (eg {!$Record__Prior.IsActive__c}). But you can NOT use formula values from the newly changed record.

  • Formulas CAN be used as the source value Update records elements in after save flow triggers

...

Tip

So, use formulas in Flow Triggers IF you can be sure they are stable formulas and be very careful to test what happens when the formula value changes!

Formulas in Updates

Again it’s a bit fat no from Before-Save Flows.

...

Formula Templates

Not Changed

Code Block
{!$Record.Field__c} = {!$Record__Prior.Field__c}

IsChanged

Code Block
{!$Record.Field__c} <> {!$Record__Prior.Field__c}

IsChanged and Was Blank

Code Block
AND(NOT(ISBLANK({!$Record.Field__c})),ISBLANK({!$Record__Prior.Field__c}))

It seems weird to use IS in Prior context, not WAS.