Assistance Required: Report Export to Excel and WorkDrive Upload via Deluge

Assistance Required: Report Export to Excel and WorkDrive Upload via Deluge

I'm working on automating a scheduled workflow in Zoho Creator that needs to run weekly. The goal is to:

  1. Export a report from Zoho Creator in Excel (.xls or .xlsx) format, and

  2. Upload the exported file to a specific folder in Zoho WorkDrive using a Deluge script.


Issue Faced

I attempted an approach where the report is exported using its public permalink export URL, fetched using invokeurl, and then uploaded to WorkDrive using zoho.workdrive.uploadFile. While the upload technically completes and the file appears in the WorkDrive folder, the following issues are observed:

  • The uploaded Excel file contains unreadable or junk data, such as HTML tags, headers, or unrelated text.

  • On inspection, the response from the invokeurl appears to be HTML content, not a binary Excel file, which seems to be the root cause of the issue.


Request

Could you please help with the following:

  • supported method or working example for exporting a report from Zoho Creator in Excel format and uploading it to WorkDrive via Deluge.

  • Clarification on whether using the public permalink + invokeurl is a recommended approach, or if there’s a better API-based method.

  • Any best practices to ensure the correct file format is fetched and uploaded.

Your assistance would be greatly appreciated to help complete this automation.

Best regards,
Monish