how to trigger a flow from flow designer using ui action script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi,
How can trigger a flow (from flow designer) ui UI Action Script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
var flowInputs = {};
flowInputs['current'] = current;
flowInputs['table_name'] = current.getTableName();
var result = sn_fd.Flow.startAsync('flow name', flowInputs);
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Alon Grod
https://developer.servicenow.com/dev.do#!/reference/api/zurich/server/ScriptableFlowAPI
var inputs = {};
inputs['table_name'] = '<your_Table_Name>';
inputs['current'] = current; // GlideRecord of table: incident
sn_fd.FlowAPI.startFlow('global.[internal name of flow]', inputs);
// Execute Synchronously: Run in foreground.
sn_fd.FlowAPI.executeFlow('global.[internal name of flow]', inputs);
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
49m ago
the information you are looking for is easily available in docs or developer site
what did you try and where are you stuck?
Docs link below
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader