Salesforce Fact #76 | Invoke Workflow during update only

All the workflow evaluation criteria have 'Created' in common i.e. they are invoked during record creation. But what if we want to call the workflow only during specific change in the record.

We can use the function PRIORVALUE in workflow only for the evaluation criteria type 'Created and every time it's edited'. And using PRIORVALUE we can make it work only during the specific change.

In this example, the workflow is called only when the account rating is changed from 'Hot' to 'Cold'.

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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