Solved
Forum Discussion
PB
2 years agoNew Contributor II
Thanks for the reply.
It seem like I'm not able to log the members themselves. I.e. I can output the values, but not the member names.
JackLacava
2 years agoCommunity Manager
As RobbSalzmann said, you cannot use here any method that expects the api object, since that's available only in rules run by the Finance engine. This is why it doesn't show up in the helper tree, if you're writing a Dashboard DataSet:
You'll have to stick to BRApi functions instead. Example to do what you want there:
Dim mName as String = BRApi.Finance.Members.GetMemberName( _
si, _
dimTypeId.Account, _
cell.DataCellPk.AccountId)
brapi.errorlog.logMessage(si, "My name is " & mName & " (Slim Shady)")
Edit: for best performance, you probably want to cache the results of that GetMemberName in a dictionary, to avoid too many lookups that might end up hitting the database.
- PB2 years agoNew Contributor II
Excellent! Thanks - that works!
Related Content
- 2 years ago
- 2 years ago
- 2 years ago
- 4 years ago