DocsReferenceBulkAPI

Reference

BulkAPI

Data movement: synchronous import and export, batched import for large files, and asynchronous (job-based) import and export. 16 methods.

javascript
var org       = ac.getOrgInstance(orgId);
var workspace = ac.getWorkspaceInstance(orgId, workspaceId);
var view      = ac.getViewInstance(orgId, workspaceId, viewId);
var bulk      = ac.getBulkInstance(orgId, workspaceId);

BulkAPI exposes 16 methods. Method names are camelCase and identifiers are string.

Methods#

exportBulkData, exportBulkDataStream, exportData, exportDataStream, getExportJobDetails, getImportJobDetails, importBulkData, importBulkDataAsBatches, importBulkDataInNewTable, importData, importDataInNewTable, importDataInNewTableAsBatches, importRawData, importRawDataInNewTable, initiateBulkExport, initiateBulkExportUsingSQL

exportBulkData#

javascript
exportBulkData(jobId, filePath)

Download the exported data for the mentioned job id.

ParameterTypeDescription
jobIdStringId of the job to be exported.
filePathStringPath of the file where the data exported to be stored.

Raises — Error

exportBulkDataStream#

javascript
exportBulkDataStream(jobId)

Download the exported bulk data for the given job id as a stream.

ParameterTypeDescription
jobIdStringExport job id

Returns — - Stream containing exported data

exportData#

javascript
exportData(viewId, responseFormat, filePath, config={})

Export the mentioned table (or) view data.

ParameterTypeDescription
viewIdStringId of the view to be exported.
responseFormatStringThe format in which the data is to be exported.
filePathStringPath of the file where the data exported to be stored.
configObjectContains any additional control attributes.

Raises — Error

exportDataStream#

javascript
exportDataStream(viewId, responseFormat, config = {})

Export the mentioned table (or) view data as a stream.

ParameterTypeDescription
viewIdStringId of the view to be exported
responseFormatStringExport format (csv, xls, json, etc.)
configObjectAdditional control parameters (optional)

Returns — - Stream containing exported data

getExportJobDetails#

javascript
getExportJobDetails(jobId)

Returns the details of the export job.

ParameterTypeDescription
jobIdStringId of the export job.

Returns — Export job details.

Raises — Error

getImportJobDetails#

javascript
getImportJobDetails(jobId)

Returns the details of the import job.

ParameterTypeDescription
jobIdStringId of the job.

Returns — Import job details.

Raises — Error

importBulkData#

javascript
importBulkData(viewId, importType, fileType, autoIdentify, filePath, config={})

Asynchronously import the data contained in the mentioned file into the table.

ParameterTypeDescription
viewIdStringId of the view where the data to be imported.
importTypeStringThe type of import. Can be one of - append, truncateadd, updateadd.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filePathStringPath of the file to be imported.
configObjectContains any additional control attributes.

Returns — Import job id.

Raises — Error

importBulkDataAsBatches#

javascript
importBulkDataAsBatches(viewId, importType, autoIdentify, filePath, batchSize, config={})

Asynchronously import the data contained in the mentioned file into the table.

ParameterTypeDescription
viewIdStringId of the view where the data to be imported.
importTypeStringThe type of import. Can be one of - append, truncateadd, updateadd.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filePathStringPath of the file to be imported.
batchSizeNumberNumber of lines per batch.
configObjectContains any additional control attributes.

Returns — Import job id.

Raises — Error

importBulkDataInNewTable#

javascript
importBulkDataInNewTable(tableName, fileType, autoIdentify, filePath, config={})

Asynchronously create a new table and import the data contained in the mentioned file into the created table.

ParameterTypeDescription
tableNameStringName of the new table to be created.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filePathStringPath of the file to be imported.
configObjectContains any additional control attributes.

Returns — Import job id.

Raises — Error

importData#

javascript
importData(viewId, importType, fileType, autoIdentify, filePath, config={})

Import the data contained in the mentioned file into the table.

ParameterTypeDescription
viewIdStringId of the view where the data to be imported.
importTypeStringThe type of import. Can be one of - append, truncateadd, updateadd.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filePathStringPath of the file to be imported.
configObjectContains any additional control attributes.

Returns — Import result.

Raises — Error

importDataInNewTable#

javascript
importDataInNewTable(tableName, fileType, autoIdentify, filePath, config={})

Create a new table and import the data contained in the mentioned file into the created table.

ParameterTypeDescription
tableNameStringName of the new table to be created.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filePathStringPath of the file to be imported.
configObjectContains any additional control attributes.

Returns — Import result.

Raises — Error

importDataInNewTableAsBatches#

javascript
importDataInNewTableAsBatches(tableName, autoIdentify, filePath, batchSize, config={})

Create a new table and import the data contained in the mentioned file into the created table.

ParameterTypeDescription
tableNameStringName of the new table to be created.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filePathStringPath of the file to be imported.
batchSizeNumberNumber of lines per batch.
configObjectContains any additional control attributes.

Returns — Import result.

Raises — Error

importRawData#

javascript
importRawData(viewId, importType, fileType, autoIdentify, data, config={})

Import the raw data provided into the table.

ParameterTypeDescription
viewIdStringId of the view where the data to be imported.
importTypeStringThe type of import. Can be one of - append, truncateadd, updateadd.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
dataStringRaw data to be imported.
configObjectContains any additional control attributes.

Returns — Import result.

Raises — Error

importRawDataInNewTable#

javascript
importRawDataInNewTable(tableName, fileType, autoIdentify, data, config={})

Create a new table and import the raw data provided into the created table.

ParameterTypeDescription
tableNameStringName of the new table to be created.
fileTypeStringType of the file to be imported.
autoIdentifyStringUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
dataStringRaw data to be imported.
configObjectContains any additional control attributes.

Returns — Import result.

Raises — Error

initiateBulkExport#

javascript
initiateBulkExport(viewId, responseFormat, config={})

Initiate asynchronous export for the mentioned table (or) view data.

ParameterTypeDescription
viewIdStringId of the view to be exported.
responseFormatStringThe format in which the data is to be exported.
configObjectContains any additional control attributes.

Returns — Export job id.

Raises — Error

initiateBulkExportUsingSQL#

javascript
initiateBulkExportUsingSQL(sqlQuery, responseFormat, config={})

Initiate asynchronous export with the given SQL Query.

ParameterTypeDescription
sqlQueryStringThe SQL Query whose output is exported.
responseFormatStringThe format in which the data is to be exported.
configObjectContains any additional control attributes.

Returns — Export job id.

Raises — Error

  • Errors — the failure envelope and codes worth branching on.
  • Limits — throttles and quotas that apply to these calls.
Zoho Analytics Node.js SDK · REST API v2 Generated 2026-10-27