Rollback Records in Salesforce Flow

Опубликовано: 20 Март 2026
на канале: Technical Potpourri by Sudipta Deb
2,786
49

In today's video, I will delve deep into the advanced features of Salesforce Flow - "Rollback Elements".

To roll back a transaction and cancel all its pending record changes in a screen flow, add the new Roll Back Records element in a fault path. Previously, when a transaction ended, its pending record changes were saved to the database even if a flow element failed in the transaction.

🚀 Where: This change applies to Lightning Experience and Salesforce Classic in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.

🚀 Why: Oftentimes, when a flow element fails, you also want to cancel pending record changes that make sense only when the flow element succeeds. If the element fails, saving the pending record changes in the current transaction doesn't make sense. For example, your screen flow creates a lead and the associated appointment. The flow ends with the Screen element that shows a success message. The Create Records element for the appointment has a fault connector to the Roll Back Records element. After the Roll Back Records element, the flow executes the initial Screen element.

📌📌📌 Content ----------
0:00 - Introduction
0:08 - Why do we need a "Rollback" feature?
1:08 - Demo
8:26 - Conclusion

📌 Collection Filter and Sort in Salesforce Flow -    • Collection Filter and Sort in Salesforce Flow  
📌 HTTP Post Call From Salesforce Flow -    • Salesforce Summer 23 Release New Flow Feat...  
📌 Summer 23 Release | How To Add Named Credentials To Permission Set Using Principals -    • How To Add Named Credentials To Permission...  
📌 Salesforce Summer 23 Release Playlist -    • Salesforce Summer 23 Release  
📌 External Services in Flow - HTTP Callout | Spring 23 Feature -    • External Services in Flow - HTTP Callout |...  
📌 Salesforce Release Playlist -    • Salesforce Release  

#salesforce #flow #rollback #database #delete #pending #transaction #flow-fault-path #rollback-element #flow-connect-elements #cancel-pending-transaction

✨ Blog: https://www.sudipta-deb.in/
✨ Subscribe for new videos on technology every week: https://bit.ly/3vCQKpg

✨Connect with me
📌 Twitter:   / thesudiptadeb  
📌 Website: https://www.sudipta-deb.in/
📌 LinkedIn:   / sudiptadeb  
📌 Facebook:   / technicalpotpourri  

Credit: Music I Use under the Mixkit License
Disclaimer: All opinions are my own and this video content is not endorsed by Salesforce, Google or any other company in any way.