DocsReferenceBulkAPI

Reference

BulkAPI

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

go
org       := ZAnalytics.GetOrgInstance(&ac, orgId)
workspace := ZAnalytics.GetWorkspaceInstance(&ac, orgId, workspaceId)
view      := ZAnalytics.GetViewInstance(&ac, orgId, workspaceId, viewId)
bulk      := ZAnalytics.GetBulkInstance(&ac, orgId, workspaceId)

BulkAPI exposes 14 methods. Method names are PascalCase (exported) and identifiers are string.

Methods#

ExportBulkData, ExportData, GetExportJobDetails, GetImportJobDetails, ImportBulkData, ImportBulkDataAsBatches, ImportBulkDataInNewTable, ImportBulkDataInNewTableAsBatches, ImportData, ImportDataInNewTable, ImportRawData, ImportRawDataInNewTable, InitiateBulkExport, InitiateBulkExportUsingSQL

ExportBulkData#

go
ExportBulkData(jobid, filepath string) (serverexception *ServerException)

Download the exported data for the mentioned job id.

ParameterDescription
jobidReturns the export job id.
filepathPath of the file where the data exported to be stored.

ExportData#

go
ExportData(viewid, responseformat, filepath string, config map[string]interface{}) (serverexception *ServerException)

Export the mentioned table (or) view data.

ParameterDescription
viewidId of the view to be exported.
responseformatThe format in which the data is to be exported.
filepathPath of the file where the data exported to be stored.
configContains the control configurations.

GetExportJobDetails#

go
GetExportJobDetails(jobid string) (result interface{}, serverexception *ServerException)
ParameterDescription
jobidId of the export job.

Returns — Returns the export job details as interface.

GetImportJobDetails#

go
GetImportJobDetails(jobid string) (result interface{}, serverexception *ServerException)

Returns the details of the import job.

ParameterDescription
jobidId of the import job.

Returns — Returns the import job details as interface.

ImportBulkData#

go
ImportBulkData(viewid, importtype, filetype, autoidentify, filepath string, config map[string]interface{}) (jobid string, serverexception *ServerException)

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

ParameterDescription
viewidId of the view where the data to be imported.
importtypeThe type of import. Can be one of - append, truncateadd, updateadd.
filetypeType of the file to be imported.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filepathPath of the file to be imported.
configContains the control configurations.

Returns — Returns the import job id.

ImportBulkDataAsBatches#

go
ImportBulkDataAsBatches(viewid, importtype, autoidentify, filepath string, batchSize int, config map[string]interface{}) (jobid string, serverexception *ServerException)
ParameterDescription
viewidId of the view where the data to be imported.
importtypeThe type of import. Can be one of - append, truncateadd, updateadd.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filepathPath of the file to be imported.
batchSizeNumber of lines per batch.
configContains the control configurations.

Returns — Returns the import job id.

ImportBulkDataInNewTable#

go
ImportBulkDataInNewTable(tablename, filetype, autoidentify, filepath string, config map[string]interface{}) (jobid string, serverexception *ServerException)

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

ParameterDescription
tablenameName of the new table to be created.
filetypeType of the file to be imported.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filepathPath of the file to be imported.
configContains the control configurations.

Returns — Returns the import job id.

ImportBulkDataInNewTableAsBatches#

go
ImportBulkDataInNewTableAsBatches(tablename, autoidentify, filepath string, batchSize int, config map[string]interface{}) (jobid string, serverexception *ServerException)
ParameterDescription
tablenameName of the new table to be created.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filepathPath of the file to be imported.
batchSizeNumber of lines per batch
configContains the control configurations.

Returns — Returns the import job id.

ImportData#

go
ImportData(viewid, importtype, filetype, autoidentify, filepath string, config map[string]interface{}) (result interface{}, serverexception *ServerException)

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

ParameterDescription
viewidId of the view where the data to be imported.
importtypeThe type of import. Can be one of - append, truncateadd, updateadd.
filetypeType of the file to be imported.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filepathPath of the file to be imported.
configContains the control configurations.

Returns — Returns the import result as interface.

ImportDataInNewTable#

go
ImportDataInNewTable(tablename, filetype, autoidentify, filepath string, config map[string]interface{}) (result interface{}, serverexception *ServerException)

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

ParameterDescription
tablenameName of the new table to be created.
filetypeType of the file to be imported.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
filepathPath of the file to be imported.
configContains the control configurations.

Returns — Returns the import result as interface.

ImportRawData#

go
ImportRawData(viewid, importtype, filetype, autoidentify, data string, config map[string]interface{}) (result interface{}, serverexception *ServerException)

Import the raw data provided into the table.

ParameterDescription
viewidId of the view where the data to be imported.
importtypeThe type of import. Can be one of - append, truncateadd, updateadd.
filetypeType of the file to be imported.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
dataRaw data to be imported.
configContains the control configurations.

Returns — Returns the import result as interface.

ImportRawDataInNewTable#

go
ImportRawDataInNewTable(tablename, filetype, autoidentify, data string, config map[string]interface{}) (result interface{}, serverexception *ServerException)

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

ParameterDescription
tablenameName of the new table to be created.
filetypeType of the file to be imported.
autoidentifyUsed to specify whether to auto identify the CSV format. Allowable values - true/false.
dataRaw data to be imported.
configContains the control configurations.

Returns — Returns the import result as interface.

InitiateBulkExport#

go
InitiateBulkExport(viewid, responseformat string, config map[string]interface{}) (jobid string, serverexception *ServerException)

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

ParameterDescription
viewidId of the view to be exported.
responseformatThe format in which the data is to be exported.
configContains the control configurations.

Returns — Returns the export job id.

InitiateBulkExportUsingSQL#

go
InitiateBulkExportUsingSQL(sqlquery, responseformat string, config map[string]interface{}) (jobid string, serverexception *ServerException)

Initiate asynchronous export with the given SQL Query.

ParameterDescription
sqlqueryThe SQL Query whose output is exported.
responseformatThe format in which the data is to be exported.
configContains the control configurations.

Returns — Returns the export job id.

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