YanSavinsky
5 months agoNew Contributor III
How to derive Member ID from a Member Name in a Business Rule?
I am developing a member formula which uses Percent Of Ownership in calculation.
I am using the following to get Percent of Ownership:
Dim pOwn As Decimal = api.Entity.PercentOwnership(entityID, parentID)
In the context of this calculation I have parentID but I only have a name for the entity. How can I get the Member ID from the Member Name?
Additional question: what will the code above return if there is NO parent/child relationship between parentID and entityID? "0"?
Thanks in advance.
Yan
Dim ForEntityID As Integer = BRApi.Finance.Members.GetMemberId(si, DimType.Entity.Id, ForEntity)
You will need to put the Entity name in the variable ForEntity.