viewName = zoho.encryption.urlEncode("Stock_Sum");
paramsMap = Map();
paramsMap.put("ZOHO_ACTION","EXPORT");
paramsMap.put("ZOHO_OUTPUT_FORMAT","JSON");
paramsMap.put("ZOHO_ERROR_FORMAT","JSON");
paramsMap.put("ZOHO_API_VERSION","1.0");
hearmap = Map();
hearmap.put("Content-Type","application/json");
AnalyticsData = invokeurl
[
type :GET
parameters:paramsMap
headers:hearmap
connection:"ana"
];
data = AnalyticsData.get("response").getJSON("result");
data = data.get("rows");
//info data;
//ele.removeElement(ele.right(18));
aa = list();
for each ele in data
{
companyDetails = Map();
companyDetails.put("id",ele);
info companyDetails;
}