chris_rothermel
3 years agoContributor
Using standard substitution variables in regular Business Rules; Example: |CVYear|
In an earlier post a user named Sam helped me find a way to find the value of a variable in a Custom Calculate job using the Parameter field. Now, how can we access the value of the parameter in a regular Calculate job which does not have the Parameter field?
The variable is |CVYear|. How can we access it directly in a BR (standard Calculate)?
Thanks,
Chris
The named pairs passed as a parameter in a Custom Calculate job worked. Today I found a better way to avoid having parameters passed to a custom calc. We can use T#WFTime, and to access it I used
BRApi.Workflow.General.GetWorkflowUnitPk(si).TimeKey.ToString.Substring(0,4)
🙂