How run the Fix Scripts from the Flowdesigner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi
I have a question, on ways to run a fix script from the flow designer, basically from the flow I pass the Fix Script name, then the flow should be able to query the fix scripts table find the record and then run the script. Could you please help me what are posibilities for doing it and what would be the consequences of doing it.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Sagar,
Here are two options available for “Run Script” in Flow Designer . Choose the option based on your requirement.
Use the “Action” → “Script” step
In Flow Designer, open your Flow.
Add an Action.
Choose "Script" (under “Utilities”).
This allows you to write server-side script directly (similar to Run Script).
2. Create a Custom Action with a Script Step
In Flow Designer, go to Action Designer.
Create a new Action.
Add an Input (if you want to pass in record values).
Add a Script step and write your server-side logic there.
Save and publish the Action.
Now you can use that Action inside any Flow. You can reuse it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16m ago
Not possible
why not use custom flow action and use "Script Step" and paste that fix script code inside that?
Then invoke this flow action from your flow.
💡 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
8m ago
Hello @Sagar Rd ,
You can add a Script step in Flow Designer and write server-side code directly. You could query the "sys_script_fix" able, retrieve the script body, and execute it.
But treat Fix Scripts as governance tools, not automation steps. If you need repeatable automation, design Script Includes or Flow Actions instead. This keeps your environment safe, auditable, and aligned with ServiceNow best practices.
If my response helped mark as helpful and accept the solution.
