Forum Discussion
NicolasArgente
3 years agoValued Contributor
Try that ;
'Check the Workflow status of the parent (We can't calculate plan if the parent is certified)
Dim wfRegParent As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetParent(si, si.WorkflowClusterPk)
Dim wfRegParentPk As New WorkflowUnitClusterPk(wfRegParent.ProfileKey, si.WorkflowClusterPk.ScenarioKey, si.WorkflowClusterPk.TimeKey)
Dim wfRegParentStatus As WorkflowInfo = BRApi.Workflow.Status.GetWorkflowStatus(si, wfRegParentPk, False)
ChrisBadenhorst
3 years agoNew Contributor II
Hi Nic!
Thanks.
It errors on this line if the user does not have access to the Parent Workflow Profile.
Dim wfRegParent As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetParent(si, si.WorkflowClusterPk)
- NicolasArgente3 years agoValued Contributor
Try
BRApi.Workflow.Metadata.GetParent(si, si.WorkflowClusterPk, False)
- ChrisBadenhorst3 years agoNew Contributor II
Hi Nic,
Unfortunately, the GetParent function only accepts two arguments. One being the session info and the other the workflow you are getting the parent for.
Related Content
- 2 years ago