Workflow Profile's Substitution Text Settings in BRAPI rule

Montreux
New Contributor III

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. 

1 ACCEPTED SOLUTION

LeeB
Contributor II

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)

 

 

View solution in original post

3 REPLIES 3

LeeB
Contributor II

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)

 

 

Montreux
New Contributor III

That works!  Thanks a lot!

Montreux
New Contributor III

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