Skip to main content
Our client had created Field Update Action and Workflow rule over one the fields of Opportunity i.e. Version Code. Now due to this behaviour of trigger and the value in oldMap and newMap have changed which is giving us a hard time recognizing the actual change occurred.

 

The problem is whenever the Version Code field (which is Field Update Action) is getting set through workflow rule trigger is getting fired thrice and when it is getting fired for the second time it is showing us the proper values in oldMap and newMap. (See #2 and #3 in screenshot).

 

And whenever a simple field in an opportunity like a cell phone is updated we are getting proper value when the trigger is getting called for the first time.(See #1 in the screenshot).

 

Now, it is getting very difficult for us to identify when to consider (i.e. when the trigger is getting fired for the first time or second time) value of oldMap and newMap for further processing.

 

Below is the screenshot of Tracked values of oldMap and newMap when trigger is getting fired multiple times

 

oldMap and newMap value behavior when field update action and workflow rules gets fired

 

 
8 answers
0/9000