0

I'm trying to use the Flow Trigger for both before/after update. Question is there any way to get compare the old vs new values in the record?

I review few articles but none of the suggestion works -Cannot use function: IsChanged -Tried getPriorValue.fieldName__c, but it show syntax error -Query the record might worked for before but not for update (haven't try it)

It seems to me unreasonable that trigger tool won't have such option....

3

1 Answer 1

0

I have encounter the same issue. It is counter productive to fire the flow on every update of a record.

I believe a suggestion was to query the record and compare it to the record initiating flow and use a decision element - however this would only work (if it does work) for before triggered flows.

3
  • 1
    It is fine to fire the flow on every update, exactly as apex trigger, but in apex trigger we can check if newMap(fieldName) != oldMap(fieldName), and run the actual actions only if specific change was made. Seems it is not available yet in the Trigger Flow
    – Liron C
    Commented Nov 17, 2020 at 12:10
  • Sorry, that is what I meant by my above comment. Have you tried querying the record and comparing? Commented Nov 17, 2020 at 12:45
  • 1
    Haven't tried, I assume it will work but issue is that I don't have solution for after flow
    – Liron C
    Commented Nov 17, 2020 at 12:48

Not the answer you're looking for? Browse other questions tagged .