Analytics-Update row; criteria
Hello
Trying to update row in Analytics from Desk:
headersMap = Map();
headersMap.put("ZANALYTICS-ORGID",orgId);
config = Map();
config.put("columns",columnsMap);
criteria = "(\"salesorder_id\"=" + creteria_salesorder_id + " and \"package_id\"=" + creteria_package_id + " and \"line_item_id\"=" + creteria_line_item_id + ")";
config.put("criteria",criteria);
parameters = "CONFIG=" + config.toString();
response = invokeurl
[
type :PUT
headers:headersMap
connection:"conn"
];
Geting answer:
"{"status":"failure","summary":"JSON_PARSE_ERROR","data":{"errorCode":8534,"errorMessage":"Invalid JSON Format."}}"
This "columnsMap" variable work for "Add row".
Also try criteria:
criteria = "(\"salesorder_id\"=" + creteria_salesorder_id +")";
criteria = "(salesorder_id=" + creteria_salesorder_id +")";
criteria = "\"salesorder_id\"=" + creteria_salesorder_id;
What wrong?
Thanks