Skip to main content
September 5, 2024

Getting Dimension Info from Member Name

  • September 5, 2024
  • 1 reply
  • 0 views

I am trying to get dimension info using a member name. I came across the function, Dim nValue As Integer = BRApi.Finance.Members.GetDimIdFromMemberId(si, dimTypeId, memberId), but it requires dimTypeId. Is it possible to get dimTypeId using member name

1 reply

September 5, 2024

Hi, no, I do not think it is possible to get DimTypeId from a member name. That is because member names may be the same between different dimensions, e.g. None exists in every account-type dimension. With just the name, the system would not be able to know which dimension to return.

Is it not working for you to provide the DimTypeId like this in the formula (using account as an example)?

DimTypeId.Account
GaneshJAuthor
September 5, 2024

Hi, "DimTypeId.Account" does work but we thought of keeping it as dynamic. 

September 5, 2024

There may be ways in your code to make this dynamic, but just with the (metadata) member name alone, it will not be possible. As the same name may exist in different dimension types, the system would not know which one the rule is referring to.