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

ericb's avatar
ericb
New Contributor II
3 years ago
Solved

BRAPI rule for getting Text field from Workflow

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 transfor...
  • LeeB's avatar
    3 years ago

    Hi,

    Try the following

     

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

     

    ScenarioTypeID.<TheScenarioTypeYouHavetheTextPropStoredOn>

     

  • Krishna's avatar
    Krishna
    2 years ago

    Montreux  - BRAPI Example for Text1

    Dim wftext1 As String = brapi.Workflow.Metadata.GetProfile(si,"GL Data load COPR STD.Import").GetAttributeValue(ScenarioTypeID.Actual, SharedConstants.WorkflowProfileAttributeIndexes.Text1,Nothing)
    
    brapi.ErrorLog.LogMessage(si,wftext1)