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.

how to pass variables from parent workflow to child workflow

arey yaar
Giga Guru
i created two work flows one is the parent and the other is the child for the parent, and in catlog item i have 2 fields. i need to pass the values from 1st field to 2nd field using workflow pass a variable.

i need to pass the value from test1 to test2

find_real_file.png

first workflow

find_real_file.png

2nd workflow

find_real_file.png

find_real_file.png

Where did i go wrong

17 REPLIES 17

Mike Patel
Tera Sage

you can use current in child workflow so your script will be like

current.variables.texttwo = current.variables.textone;

didnt work for me

Apurva Malewad1
Kilo Guru

Hi,

You can see these steps for passing variables from one workflow to another.It will help you:

https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/workflow-activities/ta...

 

Please mark my answer correct/helpful if it helps you to find the solution.

 

Thanks and Regards,

Apurva Malewadikar

www.DXSherpa.com

i tried with that too it didnt work can i know y?