Forum Discussion
DanielWillis
8 months agoValued Contributor
I'm not sure you're passing the right parameter in the first position. What is ScenarioType.Control.Id supposed to be?
If it is a specific scenario type you know ahead of time then you could use something like ScenarioTypeId.Budget.
Otherwise one of the methods to obtain the scenariotypeid from current wf/global/wherever, e.g. brapi.Workflow.General.GetScenarioTypeId(...)