Note: The API Trigger Custom Function feature is currently in its beta stage with further enhancements planned in the product roadmap. Contact support@zohoiot.com to enable it for your application and for more details .url1 = "https://app12345akyrw.zohoiot.com/iot/v1/datapoints/data?datapoint_name=Fuel%20Consumed& source=DG001&aggregation=sum&time_grouping=month&period=thismonth";response1 = invokeurl[url :url1type :GETconnection:"datapointcirrus"];url2 = "https://app12345akyrw.zohoiot.com/iot/v1/datapoints/data?datapoint_name=Fuel%20Consumed& source=DG002&aggregation=sum&time_grouping=month&period=thismonth";response2 = invokeurl[url :url2type :GETconnection:"datapoint-iot"];info "RESPONSE:: " + response1 + response2;fuel_consumed_dg1 = response1.get("Fuel Consumed").get(0).get(1);fuel_consumed_dg2 = response2.get("Fuel Consumed").get(0).get(1);fuel_consumed_dg_all = fuel_consumed_dg1 + fuel_consumed_dg2;url3 = "https://www.zohoapis.com/creator/v2.1/data/user.useredu/dg-monitiring/form/Fuel_Data";payload = Map();dataList = List();recordMap = Map();recordMap.put("Fuel_Consumed",fuel_consumed_dg_all);dataList.add(recordMap);payload.put("data",dataList);response3 = invokeurl[url :url3type :POSTparameters:payload.toString()connection:"creator-iot-post"];
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.