- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2020 05:43 PM
Is it possible to trigger a Flow Designer when a record is deleted?
Also, is there a way to trigger a flow designer when an amount is changed? I don't see an option to select "Changes"
Thank you in advance.
Solved! Go to Solution.
- Labels:
-
Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2020 09:03 PM
No you cannot trigger flow for delete operation as the record won't exist.
You cannot trigger when Amount Changes.
I believe it is not supported currently OOB for Price or Amount field type.
you can trigger the flow via after update BR which would be having the condition for amount changes
Sample script below
// Map inputs. For a flow with a record trigger, inputs are the record and table
var inputs = {};
inputs['current'] = current; // GlideRecord of table:
inputs['table_name'] = 'incident';
// Execute the global flow called test_flow
sn_fd.FlowAPI.executeFlow('global.test_flow', inputs);
Reference: Scripting with Flows, Subflows, and Actions
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2020 07:51 PM
Hello JLeong,
I am not sure about the delete or particular field change but this alternatively you can achieve through Flow API.
You can set your flow 'Run Once' with past date so it will not run automatically.
Then from BR (executing on delete or field update) you can invoke flow.
Refer flow API here.
Regards
Deepen shah
aavenir.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2020 09:03 PM
No you cannot trigger flow for delete operation as the record won't exist.
You cannot trigger when Amount Changes.
I believe it is not supported currently OOB for Price or Amount field type.
you can trigger the flow via after update BR which would be having the condition for amount changes
Sample script below
// Map inputs. For a flow with a record trigger, inputs are the record and table
var inputs = {};
inputs['current'] = current; // GlideRecord of table:
inputs['table_name'] = 'incident';
// Execute the global flow called test_flow
sn_fd.FlowAPI.executeFlow('global.test_flow', inputs);
Reference: Scripting with Flows, Subflows, and Actions
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2020 03:42 AM
Hi Ankur,
I think I was able to make it work. But I just need to verify, if I trigger the flow using BR, I don't need to set a trigger in the flow, it will be empty, is that correct?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2020 04:34 AM
yes that's correct.
Don't give any trigger
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader