Forum Discussion
AndreaF
4 years agoContributor III
Reference workflow variables from business rule
Hi, this might sounds like a stupid question to the more experienced people in the community, but how do I refer to the workflow variables from within an extensibility business rule?
These 2 lines ...
- 4 years ago
Thank you very much!
Small correction to what you have written on the Time dimension, this is the working syntax:
Dim sScenario As String = ScenarioDimHelper.GetNameFromID(si, si.WorkflowClusterPk.ScenarioKey)
Dim sTime As String = BRApi.Finance.Time.GetNameFromId(si, si.WorkflowClusterPk.TimeKey)
LeeB
4 years agoContributor III
You are using substitution variables which will not work in Business Rules.
Try the following for the current Workflow Time and Scenario:
Dim sTime As String = BRApi.Finance.Time.GetNameFromId(si, api.WorkflowUnitPk.TimeKey)
Dim sScenario As String = ScenarioDimHelper.GetNameFromID(si, si.WorkflowClusterPk.ScenarioKey)
AndreaF
4 years agoContributor III
Thank you very much!
Small correction to what you have written on the Time dimension, this is the working syntax:
Dim sScenario As String = ScenarioDimHelper.GetNameFromID(si, si.WorkflowClusterPk.ScenarioKey)
Dim sTime As String = BRApi.Finance.Time.GetNameFromId(si, si.WorkflowClusterPk.TimeKey)
Related Content
- 1 year ago
- 3 years ago
- 2 years ago
- 2 years ago