How to Reset Flow Designer flow when approvers are changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2022 01:54 PM - edited ‎10-11-2022 02:49 PM
Hi, I need to reset the whole flow designer flow when there is a change in Approver.
Based on a User reference field and state, triggering an approval flow through Flow Designer.
Need help in how to cancel the previous "Ask for Approval" request and resend a New "Ask for Approval" to new approver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2022 02:54 AM - edited ‎10-12-2022 02:58 AM
Hi,
I suggest writing an On Before Business rule [sysapproval_approver] before the approval record is created and check for the similar [previous] pending approval request and cancel it.
Anyways after submission you'll have new request sent to the right approver.
Alternatively, you can achieve the same using flow designer. do a lookup of the records on the sysapproval table, find the prev record, cancel it & have the new CreateApproval action
Note this might have some performance impact. Do thorough testing.
Regards
ServiceNow Consultant
United Kingdom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2022 07:00 AM