Forum Discussion

AndreaF's avatar
AndreaF
Contributor III
3 years ago
Solved

Scenario name from ScenarioKey

Hi,   I am working with WorkflowClusterPk objects and I know I can get the ScenarioKey, which is an integer, like this: Dim scenarioKey As Integer = si.WorkflowClusterPk.ScenarioKey   How d...
  • AndreaF's avatar
    3 years ago
    I'll answer my own question. A command like this can be used:
    Dim sScenarioName As String = BRApi.Finance.Members.GetMemberName(si, "2", scenarioKey)
     
    I don't know why, but I had the idea the ScenarioKey was a different number than the MemberId (used in the GetMemberName function), but they are in fact the same thing!