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

@Sagar Rd 

I doubt this is feasible

💡 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

yashkamde
Kilo Sage

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.

 

mrsahilmir1
Tera Expert

Developer's answer this please

Sahil Gani Mir

Ehab Pilloor
Mega Sage

Hi @Sagar Rd,

 

Fix scripts are meant to be recorded and its like background script but with there is ownership for it. You shouldn't use Flow Designer too run the fix script.

 

Regards,

Ehab Pilloor

Aditya_hublikar
Mega Sage

Hello @Sagar Rd ,

 

As per my understanding, we cannot execute a Fix Script directly through Flow Designer. Fix Scripts are generally meant for one-time execution or deployment purposes.

Instead, we can create a Custom Action in Flow Designer or use a Scheduled Job if the requirement is to trigger the logic at specific time intervals. This would be a better and more maintainable approach, especially if the script needs to run on a periodic basis.

 

If this helps you then mark it as helpful and accept as solution.

regards,

Aditya,

Technical Consultant