Forum Discussion

HemantGhosh's avatar
HemantGhosh
New Contributor
30 days ago

How do we write a BRApi code for SetDataCells?

Hello Community! 

I am trying to write a BRApi SetDataCells code but cant get the syntax right. Can someone please share an example? I am not sure how to get the "dataCellExs" in the below code:

BRApi.Finance.Data.SetDataCells(si, dataCellExs)

Thanks in advance.

 

3 Replies

  • sameburn's avatar
    sameburn
    Icon for OneStream Employee rankOneStream Employee

    Hi HemantGhosh​ 

    Try searching in the Snippets from a Finance Rule or Member Formula instead (it is context specific) and you will get a much more user friendly version.  That is because Cube Data interactions are generally handled exclusively by The Finance Rules Engine.

    api.Data.SetDataCell(memberScript, amount, isNoData, isDurableCalculatedData)

    Hope this helps

    Sam

  • sameburn's avatar
    sameburn
    Icon for OneStream Employee rankOneStream Employee

    Hi HemantGhosh​ 

    Try searching snippets from a Finance Business Rule or Member Formula instead and you will see a much more user friendly version that uses FinanceRulesApi.

    This is because it is generally the case that all Cube Data is handled almost exclusively by the Finance Rules Engine

    Hope this helps

    Sam