08-26-2022 11:26 AM - last edited on 05-02-2023 10:13 AM by JackLacava
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
Solved! Go to Solution.
08-26-2022 02:17 PM - edited 08-26-2022 02:18 PM
Hi,
Try the following
Dim wftext1 As String = api.WorkflowProfile.GetAttributeValue(ScenarioTypeID.Actual, SharedConstants.WorkflowProfileAttributeIndexes.Text1)
ScenarioTypeID.<TheScenarioTypeYouHavetheTextPropStoredOn>
04-30-2024 03:15 PM - edited 04-30-2024 03:32 PM
@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)
08-26-2022 02:17 PM - edited 08-26-2022 02:18 PM
Hi,
Try the following
Dim wftext1 As String = api.WorkflowProfile.GetAttributeValue(ScenarioTypeID.Actual, SharedConstants.WorkflowProfileAttributeIndexes.Text1)
ScenarioTypeID.<TheScenarioTypeYouHavetheTextPropStoredOn>
11-02-2022 03:11 PM
Would be a version of this in BRApi ?
02-08-2023 12:01 PM
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.
04-30-2024 03:15 PM - edited 04-30-2024 03:32 PM
@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)