Forum Discussion

Omkareshwar's avatar
Omkareshwar
Contributor II
2 years ago

Execute Finance Custom Calculate Business Rules from Button

Hi, Can anyone help me how I can use this Selection Change server task I know how to run a DM Sequence from button but if I can directly run a custom calculate without a sequence that will be great...
  • ChristianW's avatar
    2 years ago

    Hi Omkareshwar

    the syntax should work, I used it several time. Did you specify all the needed dataunit dimensions, not only entity and time? Custom calculations are bound by the same restrictions as standard calcs (dataunits). If you don‘t specify them, OS uses the pov and workflow settings. To test, if the calc is executed and for what pov, I would use API.logmessage and API.pov.

    I‘m not in front of a pc and can‘t give you a sample, but I hope this helps and cheers

    Christian

  • FrankDK's avatar
    2 years ago

    As Christian mentions, you need to supply all the DataUnit dimensions in the call. It could look like:

    {BRRule}{CustomCalc}{Entity=Entity1,Cube=Cube1,Consolidate=Local,Scenario=Scenario1,TimeFilter=T#2022M12}