Skip to main content
Contributor
Feb 13, 2023 1:29 PM UTC
Solved

Workflow Profile's Substitution Text Settings in BRAPI rule

I would like to reference in a BRAPI rule text stored in the workflow profile's Substitution Text Settings.  Can someone provide an example how to do this please. 

LeeBAnswer
Contributor
Feb 13, 2023 1:52 PM UTC

This should work:

Dim wfProfileName As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk.ProfileKey)
Dim wfText1 As String = wfProfileName.GetAttributeValue(scenarioType.Actual.Id, sharedconstants.WorkflowProfileAttributeIndexes.Text1)

 

 

3 replies

LeeBAnswer
Contributor
Feb 13, 2023 1:52 PM UTC

This should work:

Dim wfProfileName As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk.ProfileKey)
Dim wfText1 As String = wfProfileName.GetAttributeValue(scenarioType.Actual.Id, sharedconstants.WorkflowProfileAttributeIndexes.Text1)

 

 

MontreuxAuthor
Contributor
Feb 14, 2023 1:55 PM UTC

That works!  Thanks a lot!

MontreuxAuthor
Contributor
Feb 13, 2023 2:03 PM UTC

Thanks, what you gave though is an api rule, I need a brapi rule for use in the dashboard data set rule type.