custom function update invoice oder number not woking if the invoice created from zoho books (billings)
Hi, i have workflow that will run whenever invoice created or updated which will call this custom function
job = invoice.get("custom_field_hash");
jsonMap = Map();
jsonMap.put("reference_number",job.get("cf_job_id"));
response = zoho.books.updateRecord("Invoices","123456789",invoice.get("invoice_id"),jsonMap,"zohobooks2");
info response;
manual execution work normal, it can update the order number using the custom field job id.
If the invoice created directly, it can update the order number.
however, if the invoice created by zoho books(subscription), it wont update the Order Number
Please advise