DocsGuidesExporting data

Guide

Exporting data

Synchronous export and the asynchronous job flow, including polling and expiry.

Two modes. Synchronous returns the file on the same call; asynchronous creates a job you poll and then download.

ModeCeilingUse when
Synchronous100 MBThe resource is not one of the restricted ones below.
Asynchronous jobNo practical ceilingRequired for any restricted resource, and for anything over the synchronous ceiling.

The choice is not about convenience. Export Data API is restricted for the resources below; for these you must use the asynchronous export, and the synchronous call rejects them with 8133:

  • Tables having more than one million rows.
  • Tables and Views from live connect workspaces.
  • Dashboard and Query Table view types.

Synchronous export#

csharp
IBulkAPI bulk = ac.GetBulkInstance(orgId, workspaceId);
bulk.ExportData(viewId, "csv", @"C:\data\Sales.csv", null);

Formats#

FormatApplies to
csv, json, xmlTables, query tables, reports.
xlsTables and reports.
pdf, htmlReports and dashboards.
imageCharts.

Asynchronous export#

Create the job, poll it, then download when it reports complete.

csharp
IBulkAPI bulk = ac.GetBulkInstance(orgId, workspaceId);

long jobId = bulk.InitiateBulkExport(viewId, "csv", null);

JsonElement job = bulk.GetExportJobDetails(jobId);
if (job.GetProperty("jobStatus").GetString() == "JOB COMPLETED")
{
    bulk.ExportBulkData(jobId, @"C:\data\Sales.csv");
}

Sample job response#

json
{
  "status": "success",
  "summary": "Get export job details",
  "data": {
    "jobId": "35130000001343084",
    "jobStatus": "JOB COMPLETED",
    "downloadUrl": "https://analyticsapi.zoho.com/restapi/v2/bulk/workspaces/35130000001055707/exportjobs/35130000001343084/data",
    "expiryTime": "1735689600000"
  }
}

Polling#

Poll at a sensible interval โ€” a few seconds for small exports, tens of seconds for large ones. jobStatus moves through JOB NOT STARTED, JOB IN PROGRESS, then JOB COMPLETED or JOB FAILED. Treat JOB FAILED as terminal; the response carries the reason.

Zoho Analytics C# SDK · REST API v2 Generated 2026-10-27