The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
jeffvdt
1 year agoNew Contributor III
connector business rule
Hi All,
I think i have a very simple requirement but i cant seem to get it to work. I just want the API to make use of the entity which the user is currently using in the workflow. The code i n...
- 1 year ago
Hi,
If all this is in a Connector Rule then you can use the api object to get the information for the current workflow so you don't need to use the BRApi to retrieve the WorkflowInfo object i.e. api.WorkflowProfile.ProfileKey
So you would only need this code:
Dim sEntityFilter As String = BRApi.Workflow.Metadata.GetProfileEntitiesAsMemberFilter(si, api.WorkflowProfile.ProfileKey)
jeffvdt
1 year agoNew Contributor III
Thanks! Almost there, how do i make the NameofYourWPProfile dynamic. We have around 100 WFProfiles, is it possible to fetch automatically when werun a package from the workflow. Otherwise i cant make it dynamic and have to specify the Names still..
SimonHesford
1 year agoContributor II
Hi,
If all this is in a Connector Rule then you can use the api object to get the information for the current workflow so you don't need to use the BRApi to retrieve the WorkflowInfo object i.e. api.WorkflowProfile.ProfileKey
So you would only need this code:
Dim sEntityFilter As String = BRApi.Workflow.Metadata.GetProfileEntitiesAsMemberFilter(si, api.WorkflowProfile.ProfileKey)
Related Content
- 9 months ago
- 2 years ago