Forum Discussion

YanSavinsky's avatar
YanSavinsky
New Contributor III
5 months ago

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...
  • MarcusH's avatar
    5 months ago
    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.