function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Adarsh G 6Adarsh G 6 

roll back in flow


Hi all,
I have a screen flow which will clone Account and selected contacts. Is it possible to rollback the transaction in flows if we end up with some exception while inserting child records? I want the entire tanscation to be rolledback if we get some exception in inserting contact. Other wise will end up with orphan account records without contact.

Thanks,
Adarsh
AbhishekAbhishek (Salesforce Developers) 
With rollback mode enabled in your Flow Debugger, any changes that are executed by your Flow won't be saved while you test it. This helps to keep your data clean and tidy while you create and test your Flows.

https://www.salesforceben.com/new-salesforce-flow-features-to-shout-about-in-summer-20/#:~:text=With%20rollback%20mode%20enabled%20in,create%20and%20test%20your%20Flows.

You can check this Idea too,

https://trailblazer.salesforce.com/ideaView?id=08730000000l80iAAA

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.