How run the Fix Scripts from the Flowdesigner

Sagar Rd
Tera Contributor

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

3 REPLIES 3

Tanushree Maiti
Mega Sage

Hi Sagar,

Here are two options available  for “Run Script” in Flow Designer . Choose the option based on your requirement.

  1. 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.

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@Sagar Rd 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

yashkamde
Tera Guru

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.