Use variable from main process in subprocess: Difference between revisions
Jump to navigation
Jump to search
Created page with "Insert a step of the type 'Execute Javascript' Run this script: Note: enter the name of the variable of the main proces where is says: VARIABLENAMEHERE var url = #REPLACE-STEP-LINKONLY#; var processInstanceId = +url.split('processInstanceId=')[1].substr(0,6); return WorkflowInterface.getVariableValue(processInstanceId, 'VARIABLENAMEHERE');" |
No edit summary |
||
Line 8: | Line 8: | ||
var processInstanceId = +url.split('processInstanceId=')[1].substr(0,6); | var processInstanceId = +url.split('processInstanceId=')[1].substr(0,6); | ||
return WorkflowInterface.getVariableValue(processInstanceId, 'VARIABLENAMEHERE'); | return WorkflowInterface.getVariableValue(processInstanceId, 'VARIABLENAMEHERE'); | ||
example: https://ssp.valid.nl/Workflow/Admin/ProcessAddEdit.aspx?genericid=387 |
Latest revision as of 12:07, 31 January 2023
Insert a step of the type 'Execute Javascript' Run this script:
Note: enter the name of the variable of the main proces where is says: VARIABLENAMEHERE
var url = #REPLACE-STEP-LINKONLY#;
var processInstanceId = +url.split('processInstanceId=')[1].substr(0,6);
return WorkflowInterface.getVariableValue(processInstanceId, 'VARIABLENAMEHERE');
example: https://ssp.valid.nl/Workflow/Admin/ProcessAddEdit.aspx?genericid=387