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
sfilho
3 years agoNew Contributor III
Getting the Workflow Profile Text1 attribute value using BRApi
I am trying to get the Text1 field value using a Business Rule and put this value in a cube view that is being used as Form.
Does anyone have done this before? Is it possible to get the Text1 value...
- 3 years ago
Yes it is ugly. I could not get this piece working properly:
GetAttributeValue(BRApi.Finance.Scenario.GetScenarioType(si, args.SubstVarSourceInfo.WFScenario.DimId).Id
I replaced with:
Dim wfClusterPK As WorkflowUnitClusterPk = si.WorkflowClusterPk
Dim wfScenarioTypeID As Integer = BRApi.Workflow.General.GetScenarioTypeId(si, wfClusterPK)
Dim sVarStep2 As String = BRApi.Workflow.Metadata.GetParent(si, args.SubstVarSourceInfo.WorkflowUnitInfo.ProfileName).GetAttributeValue(wfScenarioTypeID, 18000)
It brought the correctly value.
db_pdx
3 years agoValued Contributor
Hi sfilho:
Are you only using the Text1 as a POV selection in the cube view? If so, you can reference it directly in the Cube View as |WFText1|, no BR required. Let us know if that satisfies your requirements.
Cheers -DB
- sfilho3 years agoNew Contributor III
Helllo There, The Text1 field that I am using is at the level highlighted in red. Is not at the ".Forms" level.
Thank you for the help
- db_pdx3 years agoValued Contributor
Add it to the Forms level?
- sfilho3 years agoNew Contributor III
😊That's what I said. Then I heard "Well than we will have to remember to update that field in every .Forms profile we create" then I said "Yes you might want to remember that". Anyways this is stored somewhere in the database in a table. I would think that a method to get that information should exist right?
Related Content
- 1 year ago
- 4 years ago
- 2 years ago