how to pass variables from parent workflow to child workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2018 06:32 AM
i need to pass the value from test1 to test2
first workflow
2nd workflow
Where did i go wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2018 07:46 AM
Hi you can also create variables from Workflow Action > Edit Inputs // refer the attached screenshot
Create variables as required and to pass values from Parent WF to Child WF follow the steps in Pass a variable from a workflow to a subflow
Mark if correct/helpful.
Regards,
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2020 09:31 AM
Hi,
Though this is an old post, sharing some relevant information for your query, if it helps.
1. You may not be able to use add inputs option in your case, since your table is 'sc_req_item'
Please find below screenshot from Servicenow docs.
2. You may use run script to trigger the sublow -
var wf = new Workflow();
var workflowId= wf.getWorkflowFromName('name of the wf');
if (workflowId) {
var varObj= {};
var context = wf.startFlow(workflowId,current,current.operation,varObj);
}
Regards,
Anirban
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2020 04:40 PM
