Zoho Books: How to trigger workflow in Deluge script

Zoho Books: How to trigger workflow in Deluge script

💡 How to Force Execute Workflow in Zoho Books Using Deluge

Hello Team,

If you're looking to forcefully execute a custom function or workflow in Zoho Books, you can do so by using the special header node X-ZOHO-Execute-CustomFunction in your API call.

Set the header value to "true" and it will trigger the associated custom function or workflow during the API execution.

✅ Sample Deluge Script:

  1. headermap = Map();
  2. headermap .put("X-ZOHO-Execute-CustomFunction", "true");
  3. result = invokeurl
  4. [
  5. url: "Zoho Books URL"
  6. type: POST
  7. parameters: <expression>
  8. headers: headermap 
  9. connection: "zbooks"
  10. ];
Replace "Zoho Books URL" with your actual endpoint, and <expression> with your required parameters.

This is especially useful when you want to ensure a custom workflow runs during an API-based record creation or update.

Thanks & Regards
Piyush Goyal
Zoho Developer | Certified in CRM and Creator
+91-8619164837