I've been trying to add a row in Analytics using the below code.
orgId = "-----";
workspaceId = "----";
viewId = "----";
headersMap = Map();
headersMap.put("ZANALYTICS-ORGID",orgId);
columnsMap = Map();
columnsMap.put("User ID","Hello");
columnsMap.put("User Name","this works");
config = Map();
config.put("columns",columnsMap);
parameters = "CONFIG=" + config.toString().encodeURL();
info parameters;
response = invokeurl
[
type :PUT
headers:headersMap
connection:"analytics"
];
info response;
Any ideas on what I'm doing wrong?
I'm getting this error:
CONFIG=%7B%22columns%22%3A%7B%22User+ID%22%3A%22Hello%22%2C%22User+Name%22%3A%22this+works%22%7D%7D<br>{"status":"failure","summary":"URL_RULE_NOT_CONFIGURED","data":{"errorCode":8525,"errorMessage":"There is no web page matching your request."}}<br>