Forum Discussion
4 Replies
- jeffvdtNew Contributor II
Yes, i just want to use the entities assigned to the current workflow. Entity name is the same as in ERP so thats easy i think 🙂 Thanks for your help!!!!
- SimonHesfordContributor II
The following will return you a comma delimited string like this:
E#[381],E#[145],E#[492],E#[573]
Dim wfProfileInfo As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, "NameOfYourWFProfile")
Dim sEntityFilter As String = BRApi.Workflow.Metadata.GetProfileEntitiesAsMemberFilter(si, wfProfileInfo.ProfileKey)Therefore you will probably want to format the string to get rid of the Dimension flag e.g.
sEntityFilter.Replace("E#",String.Empty)
- jeffvdtNew Contributor II
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..
Related Content
- 2 years ago
- 3 years ago