The CreatorCon Call for Content is officially open! Get started here.

How do you pass parameters from parent to child workflow

Tharun15
Tera Contributor

Hi Team,

How do you pass parameters from parent to child workflow

Thanks,

Kumar

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

On the child workflow, define an input. This input can be called in scripting in the child workflow by using "workflow.variables.u_field_name". On the parent flow, you can enter a manual value on the input on the child workflow step or use for example workflow.scratchpad.
See the examples below.

 

Child workflow:

find_real_file.png

find_real_file.png

 

Parent workflow:

find_real_file.png

find_real_file.png

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

View solution in original post

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

Hi there,

On the child workflow, define an input. This input can be called in scripting in the child workflow by using "workflow.variables.u_field_name". On the parent flow, you can enter a manual value on the input on the child workflow step or use for example workflow.scratchpad.
See the examples below.

 

Child workflow:

find_real_file.png

find_real_file.png

 

Parent workflow:

find_real_file.png

find_real_file.png

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn