Hi,
I'm trying to get sum of sales by saletype using REST API. I've been trying with this kind of request:
/api/v1/Agents/Archive/GetArchiveListByColumns2
{
"ProviderName": "findsale",
"Columns": "GroupBy(saletype):Header,sum(amount):HideDetail:Footer",
"Restrictions": "saleid > 0",
"Entities": "sale",
"Page": 0,
"PageSize": 500
}
But problem is it doesn't return saletypes, only some sums. Like this:
"ColumnData": {
"GroupBy(saletype):Header": {
"DisplayValue": "",
"TooltipHint": "",
"LinkHint": ""
},
"sum(amount):HideDetail:Footer": {
"DisplayValue": "[F:123]",
"TooltipHint": "",
"LinkHint": ""
}
},
Also is there any simple way to parse DisplayValue-fields in Javascript?