Posts

Showing posts from October, 2021

LinkedIn

Salesforce Screen Flow - Roll Back Behavior

Image
 Similar to Apex Roll Back, as part of Winter 22, Salesforce has introduced Flow Roll Back feature also. Let us see the transaction behavior when using roll Back along with Screen Flow. 1. Feature Details As of now Roll Back feature is available only for Screen Flows.  All pending operations in the current transaction will be rolled back on adding Roll Back element to a fault connector. This is useful when we have a series of DML operations happening in a single transaction and ScreenFlow will try to combine all those into a single transaction 2. Use Case - Single Input Screen - Multiple DML  I would like to develop a screen where you can create both Account and Contact together on a single screen. The flow looks like below: The input screen looks like below: And once you enter details in all fields and click on next, Below operations will be happening: Below is the Transaction Behavior 3. Add failure to Contact Save Now let us add a validation rule on Contact to make the...