ASO Data Export with exportdataslice
Summary: We are trying to exportdataslice from ASO cube using groovy rule, we are not really sure how should we use below JSON script in groovy rule. If you have some examples, can you please share.
[{"exportPlanningData": false,"gridDefinition": {"suppressMissingRows": true,"pov": {"dimensions": ["Year","Scenario","Version","Wrkforce","DataView"], "members": [["FYxx"],["Actual"],["Final"],["NoWrkforce"],["Source"]]},"columns": [{"dimensions": ["Period"],"members": [["IDescendants(YearTotal)"]]}], "rows": [{"dimensions": ["Entity","Department","Product","Project","Account"],"members": [["IDescendants(Total_Entity)","IDescendants(TotalDept)", "IDescendants(TotalProd)","IDescendants(TotalProj)","IDescendants(A_xxxxx)"]]}]}}]
FYI, We are using below code but getting validation error.
def body0 = new JSONObject()
.put( <Above JSON Code
> ).toString()
HttpResponse<String> dmResponse0 =operation.application.getConnection("Local Cloud Instance").post("/HyperionPlanning/rest/v3/applications/TFSFPA/plantypes/****/exportdataslice").body(body0).asString()