Salesforce Fact #853 | Sobject update fact

In apex, if we add an sobject record to a list and then update any of the field value the final list would include that value. But that's not the case in case of flow.

In this example, we are adding an account record to a list and then updating the rating to 'Cold'. After DML is made on the list, the account rating would be 'Cold'.


In case of flow, it doesn't update the rating.

Note: As a best practice, always make the necessary updates to sobject record and finally add to the list. The above example is only for demonstration purpose and should not be followed.

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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