BCG
2 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...
- 2 years ago
I think the problem is that you have added .MemberPk. This works for me:
api.Members.GetMember(DimType.Account.Id, "HEADCOUNT").MemberId
- 2 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