We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to Pass inputs or scratcpad values from Parent workflow to sub workflow.

Suvarna
Kilo Explorer

i want to pass the scratchpad values from parent to child workflow using parallel flow launcher.

am setting some scratchpad values in parent workflow if i try to access that values in child workflow means am getting an error as "Undefined". 

Thank you for any help. 

1 ACCEPTED SOLUTION

Not sure if you've read this, but you need to define your inputs from your parent, to your child, and make sure to do a return value from the child to the parent:

https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/workflow-activities/task/t_VariableWorkflowSubflow.html

View solution in original post

6 REPLIES 6

Hi 

workflow.scratchpad.getData = "Welocome";

 

In Child Workflow:

var myname = workflow.scratchpad.getData;

 

Just make this change.

 

Thanks.

Not sure if you've read this, but you need to define your inputs from your parent, to your child, and make sure to do a return value from the child to the parent:

https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/workflow-activities/task/t_VariableWorkflowSubflow.html