- 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-15-2020 04:50 AM
Thanks so much! Appreciate your help as always!
Have a nice day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020 05:16 AM
You are welcome
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
07-03-2025 01:47 AM
Hello JLeong,
Did you manage to do it ?
Trigger is mandatory for flow activation and it didnt work if I use a before deletion business rule and a Run once trigger with a date in the past.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 03:45 AM
Hi Christope,
"Delete" trigger is not available in Flow Designer, but you can use a before delete business rule and the Flow API .
- Table: Select the table where records are deleted.
- Advanced: Set the "When to run" to "before", and "delete".
- Advanced: Use the "Script" section to capture the record's data before it's deleted. You can store this data in a JSON object or similar structure.
- Flow API: Within the business rule, use the Flow API to start the flow. This will allow you to pass the captured data as input to the flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020 01:25 AM
Thanks for marking my response as helpful.
Let me know if I have answered your question.
If so, please mark my response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader