/*updating status*/
billID = bill.get("bill_id");
responseNewBills = invokeurl
[
url :"https://www.zohoapis.in/creator/v2.1/data/dev07uat21/organic/report/All_Purchase_Order_Bills?Bill_Books_ID=" + billID
type :GET
connection:"creator"
];
if(responseNewBills.get("code") == 3000 && responseNewBills.get("data") != null)
{
updateID = responseNewBills.get("data").get(0).get("ID");
info bill.get("status");
updateMap = Map();
newOther = Map();
updateMap.put("Bill_Status",bill.get("status"));
udpateBills = zoho.creator.updateRecord("dev07uat21","organic","All_Purchase_Order_Bills",updateID,updateMap,newOther,"creator");
}
info udpateBills;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter