Salesforce Fact #442 | Another awesome feature of record-triggered flow

Most of the time we execute some custom logic when there is any change in the value of specific fields of the record. But what if we need to detect if there is any change in the record i.e. there is a change in any of field (excluding audit fields and formula fields obviously!).

Salesforce record-triggered flow has this awesome feature where we can compare the previous and current state of the record, without specifying any field explicitly.

In this example, we have set up a record-triggered flow on Account and it checks if there is any change in any of the field value and if it is, then it updates the description with some text.

Attached are the screenshots.



Now, once the record is created, updating no field.


Now, updating Account Source.




Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow