@plim. Hi Paul.
Been looking at this with Ben Siu. The issue seems to around the $tm1Ui.dimensionElements service. The last two attributes of this server are showHierarchy and Elementsonly. Both are boolean. I can’t see to work out what Canvas is expecting as a boolean. I have tried ‘Yes’, ‘Y’, ‘true’, true, ‘1’,1,‘0’,0 and ‘’. Would be great to include quick examples in the documentation.
The only thing that seems to work is by using ‘’ and leaving them blank. Anything else will not return the children. Examples are below.
This is my subset
This is my command that works.
$tm1Ui.dimensionElements('Wesfarmers_prod', 'account_tb', '' , 'Mine cash costs accounts', '', '', '', '', '')
It returns the below. You can see that object 1 has 29 components.
How if I change the attributes to anything, true and true in this example, I lose the components.
$tm1Ui.dimensionElements('Wesfarmers_prod', 'account_tb', '' , 'Mine cash costs accounts', '', '', '', true, true)
As you can see below I get no components in object 1.