Skip to main content
RobbSalzmann
Employee - Advisor
Employee - Advisor
Apr 7, 2023 1:38 PM UTC
Solved

What is the correct API Type to use in an Extensibility Rule to call Members.GetBaseMembers()?

An api is passed in, but typed as Object, what is object type of the correct/most efficient API to use in an Extensibility Rule to call Members.GetBaseMembers()?

Employee - Sage
Apr 18, 2023 8:37 AM UTC

if the api object is typeless ("Object") in that particular context, it means it's empty and there is nothing to use there. Not all engines actually provide a useful "api" object. In those cases, BRApi is the only way to go.

3 replies

Veteran
Apr 7, 2023 2:07 PM UTC

Hey Robb!
Try that : 
BRApi.Finance.Members.GetBaseMembers(si, DimensionDimPk, YourTopMemberId, Nothing )
Give a Thumbs Up if it helps 🙂
And Happy easter to all!
Nic

RobbSalzmann
Employee - Advisor
Employee - Advisor
Apr 7, 2023 4:54 PM UTC

Thank you for the feedback NicolasArgente .  My understanding is that the BRApi is used when cross-engine is the only way to achieve something that the current engine's API cannot.  

Does this mean that 'api' passed in cannot 'GetBaseMembers'?  

I'm seeking peak efficiency here.

 

Employee - Sage
Apr 18, 2023 8:37 AM UTC

if the api object is typeless ("Object") in that particular context, it means it's empty and there is nothing to use there. Not all engines actually provide a useful "api" object. In those cases, BRApi is the only way to go.