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.

workflow in the flow designer

pramn
Kilo Sage

Hi team , 

 

How do I apply the run script of a workflow in the flow designer?

 

Script : workflow.scratchpad.approvalorder = 10;

 

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

For this you can create a Flow Variable.

 

See for example this explanation from @Community Alums :
https://www.servicenow.com/community/developer-blog/flow-variables-in-flow-designer/ba-p/2577392

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Sumanth16
Kilo Patron

Hi @pramn ,

 

1. Create an action in the flow designer using run script type of activity

https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_develop... 

2. Copy your script in this activity

3. Publish the action

4. Create a flow design and from the actions options select this newly published action.

 

Plz mark my solution as Accept, If you find it helpful.

 

 

Thanks & Regards,

Sumanth meda