/*
This is a sample function. Uncomment to execute or make changes to this function. */
expenseID = expense.get("expense_id");
expenseDate = expense.get("date").toDate();
organizationID = organization.get("organization_id");
response = zoho.books.getRecordsByID("Expense",organizationID,expenseID,"books_connection");
// Create a map to hold the new values of the record
valuesMap = Map();
valuesMap.put("vendor_name","Wickes");
// update = zoho.books.updateRecord("expense",organizationID,expenseID,valuesMap,"books_connection");
update = zoho.books.updateRecord("expense",organizationID,expenseID,valuesMap,"books_connection");
info organizationID;
info expenseID;
info update;
The Update returns:
{"code":5,"message":"Invalid URL Passed"}
No data is saved back to the record. Please can someone tell me what I'm doing wrong as looks so simple.
Thanks