- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2025 03:00 AM
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
11-18-2025 10:41 PM
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
11-20-2025 06:39 PM
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
11-20-2025 08:23 PM
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
11-17-2025 04:26 AM
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
11-20-2025 02:18 AM
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
