How run the Fix Scripts from the Flowdesigner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks 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
4 weeks 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
3 weeks ago
Hi
This requirement is to basically achive at the time of deployment we get a bunch of request to run the fix scripts, now we would like to automate this step through a flow to pick up the fix script name and execute it, the problem we are facing is with the "GlideScopedEvaluator" we are able to execute the script but the backend process of creating a Roll back Context record is not working. So wanted your ideas and thought on how can achive this.
Thankyou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This requirement is to basically achive at the time of deployment we get a bunch of request to run the fix scripts, now we would like to automate this step through a flow to pick up the fix script name and execute it, the problem we are facing is with the "GlideScopedEvaluator" we are able to execute the script but the backend process of creating a Roll back Context record is not working. So wanted your ideas and thought on how can achive this.
Thankyou
