Forum Discussion
JackLacava
OneStream Employee
14 hours agoTo clarify: you want the Entities assigned to workflows that are set as Named Dependents of a particular workflow?
This shows how to do it, drop it into a DataSet rule and parameterize as necessary.
Dim profileName = "Canada Clubs"
Dim wfProfileInfo As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si,profileName )
Dim result As New DataTable("DepEntities")
result.Columns.Add("EntityName", GetType(String))
result.Columns.Add("EntityId", GetType(Integer))
For Each wfpi As WorkflowProfileInfo In wfProfileInfo.NamedDependentInfo.DependentProfiles()
Dim ents = BRApi.Workflow.Metadata.GetDependentProfileEntities(si, wfpi.ProfileKey)
For Each ent As BaseNameIntPairInfo In ents
Dim newRow = result.NewRow()
newRow("EntityName") = ent.Name
newRow("EntityId")= ent.UniqueID
result.Rows.Add(newRow)
Next
Next
Return result
Related Content
- 2 years ago
- 3 years ago
- 2 years ago