The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
BCG
3 years agoNew Contributor II
GetMember ID issue
Hi Experts, I am trying to read the member ID in data buffer to assign some values accordingly, But it is giving in correct ID seems in the log file i can see ID as "-1" , Generally Member ID was d...
- 3 years ago
I think the problem is that you have added .MemberPk. This works for me:
api.Members.GetMember(DimType.Account.Id, "HEADCOUNT").MemberId
- 3 years ago
Hi BCG
Markus is right, your MemberPk is false, you can access the MemberId directly from the Member object.
But if you don't need the object, you can even access the id directly by using the following:
api.Members.GetMemberId(DimType.Account.Id, "HEADCOUNT")
Cheers
Christian
Henning
OneStream Employee
3 years agoHi, what is the member name when you log "GetUD1Ac"? Does that match 100% with the member of which you intend to retrieve the ID? It seems likely that the string returned to GetUD1Ac may be a little inaccurate and therefor cannot be found in the dimension.
- BCG3 years agoNew Contributor II
yes account GetUD1Ac value is correct. matching with log file
Related Content
- 1 year ago
- 8 months ago
- 5 months ago
- 2 years ago