Rollback in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 11:16 PM
Hi Team,
Do we have rollback in flow designer?
example : I built one flow, where I am updating 3 records with same feilds.
lets say A, B , C are records i need to update one of the field called feild1.
Now senario is : what if flow designer fails to update feild1 value of C and flow ends. in this case how to revert or rollback value of A and B records to previous values??
how to impliment rollback in flow designer? please give idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 12:04 AM
You will need to put in additional steps before the end of the flow. But if your flow states 'feild1 on record C = xyz', it should update. What reason could there be that it doesn't update?
You will need to put a validation step in. Best way to do it, is to create a two variable for the field value (or six if it's different values. You first set your 'old value' variable(s) to the values they have before changing and then set feild1 on all records to the 'new value' variables. You then do a look up to the record(s) and check if the values in the field are indeed the same as the 'new value' variable(s) and if not, you put the 'old value' variable(s) back.
You didn't share anything about the process, but to me this sounds like something that shouldn't happen in the first place, so maybe a waste of effort?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 12:24 AM
Hi @Vinay2509 ,
There is no automated way to roll back
Refer: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0820128
However in your scenario, before upadting A, B C,
1)Get their current values/data (store them, May be in flow variables)
2)If any of your update fails (check using action status) write a action or subflow to update old values.
Hope this helps!!!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
