- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi All,
Is there any functionality in flow to run custom script as Run script activity in workflow ? When condition matches I want to trigger a script in flow designer.
Thank You
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you can add 2 script steps in same custom action or have 2 custom actions with 1 script step in each of those
it's as per your customer requirement.
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
it's very simple.
pass the record sysId to custom flow action as input
then use that to query your table and you have the GlideRecord object of that record
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Yes,
In flow designer while using actions we have the option for toggle script there we can use fd_data object and write our script..
If this help please mark as helpful..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Yes, Flow Designer can run custom scripts!Main Options:
Script Step (inline in flow) - Most similar to Workflow "Run Script"
Custom Script Action (reusable)
Script Include (called from Script Step)
Subflow with Script (for complex reusable logic)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Use a Script Step inside an Action
1) Go to Flow Designer → Actions
2) Create a new Action
3) Add a Script step
--> This allows running custom server-side JavaScript
--> You can define inputs & outputs
4) Save the Action
5) Use that Action inside your Flow