BRAPI rule for getting Text field from Workflow

ericb
New Contributor II

I'm trying to pull a Text field from a workflow in a transformation event handler rule but ran into an issue.  I originally tried to use api.Workflow.GetWFText1() but that does not work in a transformation event handler rule.  Is there a way to get it using a BRAPI

1 ACCEPTED SOLUTION

LeeB
Contributor II

Hi,

Try the following

 

Dim wftext1 As String = api.WorkflowProfile.GetAttributeValue(ScenarioTypeID.Actual, SharedConstants.WorkflowProfileAttributeIndexes.Text1) 

 

ScenarioTypeID.<TheScenarioTypeYouHavetheTextPropStoredOn>

 

View solution in original post

3 REPLIES 3

LeeB
Contributor II

Hi,

Try the following

 

Dim wftext1 As String = api.WorkflowProfile.GetAttributeValue(ScenarioTypeID.Actual, SharedConstants.WorkflowProfileAttributeIndexes.Text1) 

 

ScenarioTypeID.<TheScenarioTypeYouHavetheTextPropStoredOn>

 

sfilho
New Contributor III

Would be a version of this in BRApi ?

 

Montreux
New Contributor III

So is there a way to get the workflow Substitution Text Setting via a BRAPI?  Would be nice for XFBR type and Data Set type rules.