Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Is there any functionality in flow to run custom script as Run script activity in workflow ?

1_DipikaD
Kilo Sage

Hi All,

 

Is there any functionality in flow to run custom script as Run script activity in workflow ? When condition matches I want to trigger a script in flow designer. 

 

Thank You

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@1_DipikaD 

the only option is to call a custom flow action and within that write your script using Script Step

you can pass input to that flow action and then have output from that which can then be used by your main flow

Script Step 

💡 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

MaxMixali
Tera Guru

Yes, Flow Designer can run custom scripts!Main Options:

 

Script Step (inline in flow) - Most similar to Workflow "Run Script"
Custom Script Action (reusable)
Script Include (called from Script Step)
Subflow with Script (for complex reusable logic)