REST API: DimensionElementComponentAdd
Posted: Mon Mar 11, 2019 5:47 pm
Hi
I'm using the REST API to create a dimension hierarchy.
I'm using below syntax to connect an element to a consolidated node, which works as expected.
Body: {"Element":{"Name": "New Element", "UniqueName":"[plan_business_unit].[New Element]"}}
POST: Dimensions('plan_business_unit')/Hierarchies('plan_business_unit')/Elements('Consolidation1')/tm1.SetComponent
My issue is if I want to add the same element to a second consolidated node, i.e.:
Body: {"Element":{"Name": "New Element", "UniqueName":"[plan_business_unit].[New Element]"}}
POST: Dimensions('plan_business_unit')/Hierarchies('plan_business_unit')/Elements('Consolidation2')/tm1.SetComponent
I'm getting this error message:
How can I connect an element to more than one node?
I'm using the REST API to create a dimension hierarchy.
I'm using below syntax to connect an element to a consolidated node, which works as expected.
Body: {"Element":{"Name": "New Element", "UniqueName":"[plan_business_unit].[New Element]"}}
POST: Dimensions('plan_business_unit')/Hierarchies('plan_business_unit')/Elements('Consolidation1')/tm1.SetComponent
My issue is if I want to add the same element to a second consolidated node, i.e.:
Body: {"Element":{"Name": "New Element", "UniqueName":"[plan_business_unit].[New Element]"}}
POST: Dimensions('plan_business_unit')/Hierarchies('plan_business_unit')/Elements('Consolidation2')/tm1.SetComponent
I'm getting this error message:
How can I connect an element to more than one node?