Forum Discussion
Shivangi - Could you please provide more details what are you trying to achieve ? The Si.WorkflowClusterPk will get you the current selection of WFP. As JackLacava mentioned there are other methods to get the WFP information. Example Parent or descendants. See below example.
'Get the Workflow and Loop through with Text 1 Value
Dim gTime As String = BRApi.Workflow.General.GetGlobalTime(si)
Dim scenario As String = "Actual"
Dim wfClusterPk2 As WorkflowUnitClusterPk = BRApi.Workflow.General.GetWorkflowUnitClusterPk(si, _
"Total Corporate", scenario, gTime)
Dim objList As List(Of WorkFlowProfileInfo) = BRApi.Workflow.Metadata.GetRelatives(si, _
wfClusterPk2, WorkflowProfileRelativeTypes.Descendants, _
WorkflowProfileTypes.InputImportChild)
Hi Krishna ,
The issue is as you mentioned, Im trying to run an automation but the Si.WorkflowClusterPk is fetching only the current workflow information. So is there any way that I could achieve fetching the workflow name or related information dynamically please.
- Krishna8 months agoValued Contributor
Shivangi - If you are performing automation then
1. you can call the WF name in the Rule and create a DM job, schedule it in the Task Manager. Or
2. you can use my previous example which will loop through the all the WF profile and you can define the condition to execute the WF and invoke using DM and schedule in task manager.
3. If it is Direct Connect then you can use the Data Import Scheduler Open Place solution to schedule the WF data load.
Hope this helps
- Shivangi8 months agoNew Contributor III
Sure, Thank You Very much!
Related Content
- 4 months ago
- 6 months ago
- 11 months ago
- 11 months ago