Passing data from Parent Workflow to child workflow to be used by Run Script on child workflow

eliasdimopoulos
Tera Expert

Hi Community

I have created two workflows parent/child and am trying to pass data from the parent workflow to the child workflow

Parent Workflow

find_real_file.png

 

I have setup a Run Script on the parent workflow to obtain the data from the “sc_cat_item_guide_items” table and pass that information to the child workflow

I am passing the run script results to “workflow.scratchpad.approval_deleg”

Parent Workflow Run Script

find_real_file.png

I am trying to pass the value assigned to “workflow.scratchpad.approval_deleg” to the input on the child workflow and then use it in a script to obtain approval delegation

 

Child Workflow config on parent workflow

find_real_file.png

Child workflow

find_real_file.png

Child workflow inputs

 find_real_file.png

 

Child workflow script

 find_real_file.png

When I try to pass the data from the parent workflow Run Script to the child workflow scrip it doesn’t pass any data

What am I doing wrong ?

Thanks

1 REPLY 1

Ct111
Giga Sage

Refer the below link thoroughly

https://community.servicenow.com/community?id=community_question&sys_id=ea424baddb98dbc01dcaf3231f96...

 

you will get idea wherre you are wrong.

 

 

For more information you can also refer

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/workflow-activities/t...

 

Mark my ANSWER as CORRECT n also HELPFUL if it helps