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

1 ACCEPTED SOLUTION

@1_DipikaD 

you can add 2 script steps in same custom action or have 2 custom actions with 1 script step in each of those

it's as per your customer requirement.

💡 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

View solution in original post

23 REPLIES 23

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

@1_DipikaD 

Hope you are doing good.

Did my reply answer your question?

💡 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

Hi @Ankur Bawiskar , @MaxMixali ,

 

Unable to find which action should I choose . I want run the script when the previous step condition matches . Which action I need to add and there are 2 scripts i have to run one after another. Could you please suggest ?

 

Thank You

 

@1_DipikaD 

As mentioned you need to create a custom flow action and publish it.

once it's published you can use that by searching it in your correct scope or type it here

AnkurBawiskar_0-1763530405924.png

 

💡 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