Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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

10 REPLIES 10

Tanushree Maiti
Giga 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:

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

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

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