Skip to main content

In Workbench or API, when reading the Raw Response of a dashboard a query is shown like this:

"query" : {

        "version" : -1.0,

        "query" : {"measures":[["sum","Amount",null,null]],"limit":null,"groups":["AccountId.Name"],"aggregateFilters":[[["sum","Amount"],[[250000,2075705.94]],">=<="]]}

      },

 

which does not look the same as the Dashboard JSON which is:

 

"query": { "measures": [ [ "sum", "Amount", null, null ] ], "limit": null, "groups": [ "AccountId.Name" ], "aggregateFilters": [ [ [ "sum", "Amount" ], [ [ 250000, 2075705.94 ] ], ">=<=" ] ] },

 

Does anyone know the purpose of the extra "query" and the "version"?  A direct copy and paste of the raw data throws syntax errors, so I'm wondering what the purpose is?

@Peter Lyons 

4 comentários
0/9000