Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to pass(or reference) a parent workflow step UD field down in the subworkfow?

Highlighted
bzdafro
Collector

Is there a way to pass(or reference) a parent workflow step UD field down in the subworkfow?

Is there a way to pass(or reference) a parent workflow step UD field down in the subworkfow?    Trying to use the parent workflow step UD field 1 value as transition.  So  Parent WF.UD.field1= "QV" .  In the subworkflow, Im trying to add a step that references the Parent WF.UD.field1.   So if its QV..it flows to a QV related step.

 

Thanks

 

 

1 REPLY
TorstenNeumann
Super Collector

Re: Is there a way to pass(or reference) a parent workflow step UD field down in the subworkfow?

Assuming that you have a workflow MainWorkflow with a sub-workflow. In MainWorkflow step no. 1 is the one with the user data you are interested in (token of user data field shall be P_UD_TOKEN_NAME).

 

You can access this information in the subworkflow with the following tokens:

 

[WF="MainWorkflow".WFS="2".UD.P_UD_TOKEN_NAME]

 

or the visual value:

 

[WF="MainWorkflow".WFS="2".VUD.P_UD_TOKEN_NAME]

 

You could dynamically get the name of the main workflow by using the token [REQ.WORKFLOW_NAME] (if your main entity is a request). If you have more than one possible main workflows, you might want to create a user data field on the main workflow to hold the step number with the user data step (e.g. P_STEP_NO). This would be the fully dynamic version:

 

[WF="[REQ.WORKFLOW_NAME]".WFS="[WF="[REQ.WORKFLOW_NAME]".UD.P_STEP_NO]".UD.P_UD_TOKEN_NAME]

 

Have fun!

 

Torsten

//Add this to "OnDomLoad" event