Trigger the flow only via a UI action

daikhi haithem
Tera Expert

Hello,

I have a flow called "Ask for Approval" that is currently triggered when a new record is added to a table.
However, I want it to be triggered only when a specific UI action is clicked

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@daikhi haithem 

you can use code snippet from that flow and use that to invoke from server side

Scripting with Flows, Subflows, and Actions 

AnkurBawiskar_0-1748356449235.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

OlaN
Giga Sage
Giga Sage

Hi,

In addition to what Ankur already stated, convert your Flow into a Subflow (which doesn't require a trigger) then trigger it through script, as shown by Ankur.