Forum Discussion

RobbSalzmann's avatar
RobbSalzmann
Valued Contributor II
2 years ago

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()?

  • JackLacava's avatar
    JackLacava
    2 years ago

    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.

  • NicolasArgente's avatar
    NicolasArgente
    Valued Contributor

    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's avatar
      RobbSalzmann
      Valued Contributor II

      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.

       

      • JackLacava's avatar
        JackLacava
        Honored Contributor

        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.