Could I trigger a Flow Designer when a record is deleted?

JLeong
Mega Sage

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.

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@JLeong 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@JLeong 

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

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader