DocsReferenceViewAPI

Reference

ViewAPI

View-scoped calls: rows, columns, formulas, lookups, publishing, private links, tags, alerts and per-view metadata. 51 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);

ViewAPI exposes 51 methods. Method names are camelCase and identifiers are string.

Methods#

addAggregateFormula, addColumn, addFavorite, addFormulaColumn, addLookup, addRow, addTagsToView, autoAnalyse, autoAnalyseColumn, copyFormulas, createAlert, createPrivateUrl, createSimilarViews, delete, deleteAggregateFormula, deleteColumn, deleteFormulaColumn, deleteRow, editAggregateFormula, editFormulaColumn, getAggregateFormulas, getAlertsInView, getColumnDependents, getEmbedUrl, getFormulaColumns, getLastImportDetails, getMyPermissions, getPrivateUrl, getPublishConfigurations, getTableMetadata, getViewDependents, getViewMetadataForAlert, getViewTags, getViewUrl, hideColumns, makeViewPublic, refetchData, removeFavorite, removeLookup, removePrivateAccess, removePublicAccess, removeTagsFromView, rename, renameColumn, reorderColumns, saveAs, showColumns, sortDataByColumns, updatePublishConfigurations, updateRow, updateSharedDetails

addAggregateFormula#

javascript
addAggregateFormula(formulaName, expression, config={})

Add a aggregate formula in the specified table.

ParameterTypeDescription
formulaNameStringName of the aggregate formula to be created.
expressionStringFormula expression.
configObjectContains any additional control attributes.

Returns — Created aggregate formula id.

Raises — Error

addColumn#

javascript
addColumn(columnName, dataType, config={})

Add a column in the specified table.

ParameterTypeDescription
columnNameStringThe name of the column.
dataTypeStringThe data-type of the column.
configObjectContains any additional control attributes.

Returns — Created column id.

Raises — Error

addFavorite#

javascript
addFavorite(config={})

Adds a specified view as favorite.

Raises — Error

addFormulaColumn#

javascript
addFormulaColumn(formulaName, expression, config={})

Add a formula column in the specified table.

ParameterTypeDescription
formulaNameStringName of the formula column to be created.
expressionStringFormula expression.
configObjectContains any additional control attributes.

Returns — Created formula column id.

Raises — Error

addLookup#

javascript
addLookup(columnId, refViewId, refColumnId, config={})

Add a lookup in the specified child table.

ParameterTypeDescription
columnIdStringId of the column.
refViewIdStringThe id of the table contains the parent column.
refColumnIdStringThe id of the parent column.
configObjectContains any additional control attributes.

Raises — Error

addRow#

javascript
addRow(columnValues, config={})

Add a single row in the specified table.

ParameterTypeDescription
columnValuesObjectContains the values for the row. The column names are the key.
configObjectContains any additional control attributes.

Returns — Column Names and Added Row Values.

Raises — Error

addTagsToView#

javascript
addTagsToView(tagIds, config={})

Adds multiple tags to the specified view.

ParameterTypeDescription
tagIdsJSONArrayTag ids to be associated with the view.
configObjectContains any additional control attributes.

Raises — Error

autoAnalyse#

javascript
autoAnalyse(config={})

Auto generate reports for the specified table.

ParameterTypeDescription
configObjectContains any additional control attributes.

Raises — Error

autoAnalyseColumn#

javascript
autoAnalyseColumn(columnId, config={})

Auto generate reports for the specified column.

ParameterTypeDescription
columnIdStringId of the column.
configObjectContains any additional control attributes.

Raises — Error

copyFormulas#

javascript
copyFormulas(formulaNames, destWorkspaceId, config={}, destOrgId=null)

Copy the specified formulas from one table to another within the workspace or across workspaces.

ParameterTypeDescription
formulaNamesJSONArrayThe name of the formula columns to be copied.
destWorkspaceIdStringThe ID of the destination workspace.
configObjectContains any additional control attributes.
destOrgIdStringull - Id of the organization where the destination workspace is present.

Raises — Error

createAlert#

javascript
createAlert(alertName, scheduleDetails, rules, config={})

Create a data alert for the specified view.

ParameterTypeDescription
alertNameStringName of the data alert.
scheduleDetailsObjectContains the schedule configurations of the data alert.
rulesJSONArrayContains the rules to be evaluated by the data alert.
configObjectContains any additional control attributes.

Returns — Created data alert id.

Raises — Error

createPrivateUrl#

javascript
createPrivateUrl(config={})

Create a private URL for the specified view.

ParameterTypeDescription
configObjectContains any additional control attributes.

Returns — Private URL.

Raises — Error

createSimilarViews#

javascript
createSimilarViews(refViewId, folderId, config={})

Create reports for the specified table based on the reference table.

ParameterTypeDescription
refViewIdStringThe ID of the reference view.
folderIdStringThe folder id where the views to be saved.
configObjectContains any additional control attributes.

Raises — Error

delete#

javascript
delete(config={})

Delete a specified view in the workspace.

ParameterTypeDescription
configObjectContains any additional control attributes.

Raises — Error

deleteAggregateFormula#

javascript
deleteAggregateFormula(formulaId, config={})

Delete the specified aggregate formula.

ParameterTypeDescription
formulaIdStringId of the aggregate formula to be deleted.
configObjectContains any additional control attributes.

Raises — Error

deleteColumn#

javascript
deleteColumn(columnId, config={})

Delete a specified column in the table.

ParameterTypeDescription
columnIdStringId of the column.
configObjectContains any additional control attributes.

Raises — Error

deleteFormulaColumn#

javascript
deleteFormulaColumn(formulaId, config={})

Delete the specified formula column.

ParameterTypeDescription
formulaIdStringId of the formula column to be deleted.
configObjectContains any additional control attributes.

Raises — Error

deleteRow#

javascript
deleteRow(criteria, config={})

Delete rows in the specified table.

ParameterTypeDescription
criteriaStringThe criteria to be applied for deleting data. Only rows matching the criteria will be deleted. Should be null for delete all rows.
configObjectContains any additional control attributes.

Returns — Deleted rows count.

Raises — Error

editAggregateFormula#

javascript
editAggregateFormula(formulaId, expression, config={})

Edit the specified aggregate formula.

ParameterTypeDescription
formulaIdStringId of the aggregate formula to be updated.
expressionStringFormula expression.
configObjectContains any additional control attributes.

Raises — Error

editFormulaColumn#

javascript
editFormulaColumn(formulaId, expression, config={})

Edit the specified formula column.

ParameterTypeDescription
formulaIdStringId of the formula column to be updated.
expressionStringFormula expression.
configObjectContains any additional control attributes.

Raises — Error

getAggregateFormulas#

javascript
getAggregateFormulas()

Returns list of all aggregate formulas for the specified table.

Returns — Aggregate formula list.

Raises — Error

getAlertsInView#

javascript
getAlertsInView()

Returns list of data alerts configured for the specified view.

Returns — Data alerts list.

Raises — Error

getColumnDependents#

javascript
getColumnDependents(columnId)

Returns list of dependents views and formulas for the specified column.

ParameterTypeDescription
columnIdStringId of the column.

Returns — Dependent details.

Raises — Error

getEmbedUrl#

javascript
getEmbedUrl(config={})

Returns embed URL to access the specified view.

ParameterTypeDescription
configObjectContains any additional control attributes.

Returns — Embed URL.

Raises — Error

getFormulaColumns#

javascript
getFormulaColumns()

Returns list of all formula columns for the specified table.

Returns — Formula column list.

Raises — Error

getLastImportDetails#

javascript
getLastImportDetails()

Returns last import details of the specified view.

Returns — Last import details.

Raises — Error

getMyPermissions#

javascript
getMyPermissions()

Returns permissions for the specified view.

Returns — Permission details.

Raises — Error

getPrivateUrl#

javascript
getPrivateUrl(config={})

Returns private URL to access the specified view.

ParameterTypeDescription
configObjectContains any additional control attributes.

Returns — Private URL.

Raises — Error

getPublishConfigurations#

javascript
getPublishConfigurations()

Returns publish configurations for the specified view.

Returns — Publish details.

Raises — Error

getTableMetadata#

javascript
getTableMetadata()

Retrieves metadata information for the current table, including the list of available columns and associated attributes.

Returns — Table metadata details.

Raises — Error

getViewDependents#

javascript
getViewDependents()

Returns list of dependents views for the specified view.

Returns — Dependent view list.

Raises — Error

getViewMetadataForAlert#

javascript
getViewMetadataForAlert()

Returns the view metadata that can be used while configuring a data alert for the specified view.

Returns — View metadata for data alert configuration.

Raises — Error

getViewTags#

javascript
getViewTags()

Returns list of tags associated with the specified view.

Returns — Tags list.

Raises — Error

getViewUrl#

javascript
getViewUrl(config={})

Returns the URL to access the specified view.

ParameterTypeDescription
configObjectContains any additional control attributes.

Returns — View URL.

Raises — Error

hideColumns#

javascript
hideColumns(columnIds, config={})

Hide the specified columns in the table.

ParameterTypeDescription
columnIdsJSONArrayIds of the columns to be hidden.
configObjectContains any additional control attributes.

Raises — Error

makeViewPublic#

javascript
makeViewPublic(config={})

Make the specified view publically accessible.

ParameterTypeDescription
configObjectContains any additional control attributes.

Returns — Public URL.

Raises — Error

refetchData#

javascript
refetchData(config={})

Sync data from available datasource for the specified view.

ParameterTypeDescription
viewNameStringNew name of the view.
configObjectContains any additional control attributes.

Raises — Error

removeFavorite#

javascript
removeFavorite(config={})

Remove a specified view from favorite.

Raises — Error

removeLookup#

javascript
removeLookup(columnId, config={})

Remove the lookup for the specified column in the table.

ParameterTypeDescription
columnIdStringId of the column.
configObjectContains any additional control attributes.

Raises — Error

removePrivateAccess#

javascript
removePrivateAccess()

Remove private link access for the specified view.

Raises — Error

removePublicAccess#

javascript
removePublicAccess()

Remove public access for the specified view.

Raises — Error

removeTagsFromView#

javascript
removeTagsFromView(tagIds=null, dissociateAll=false, config={})

Removes multiple tags from the specified view.

ParameterTypeDescription
tagIdsJSONArrayTag ids to be dissociated. Not required when dissociateAll is true.
dissociateAllBooleanTo dissociate all the associated tags from the view.
configObjectContains any additional control attributes.

Raises — Error

rename#

javascript
rename(viewName, config={})

Rename a specified view in the workspace.

ParameterTypeDescription
viewNameStringNew name of the view.
configObjectContains any additional control attributes.

Raises — Error

renameColumn#

javascript
renameColumn(columnId, newColumnName, config={})

Rename a specified column in the table.

ParameterTypeDescription
columnIdStringId of the column.
newColumnNameStringNew name for the column.
configObjectContains any additional control attributes.

Raises — Error

reorderColumns#

javascript
reorderColumns(columnIds, config = {})

Updates the column order of the current table.

ParameterTypeDescription
columnIdsArrayFull set of column IDs in the new order.
configObjectAdditional control attributes.

Raises — Error

saveAs#

javascript
saveAs(newViewName, config={})

Copy a specified view within the workspace.

ParameterTypeDescription
newViewNameStringThe name of the new view.
configObjectContains any additional control attributes.

Returns — Newly created view id.

Raises — Error

showColumns#

javascript
showColumns(columnIds, config={})

Show the specified hidden columns in the table.

ParameterTypeDescription
columnIdsJSONArrayIds of the columns to be shown.
configObjectContains any additional control attributes.

Raises — Error

sortDataByColumns#

javascript
sortDataByColumns(columns = null, sortOrder = null, resetSort = false, config = {})

Sorts the data in the table based on the specified columns.

ParameterTypeDescription
columns`Arraynull`List of column IDs to sort by.
sortOrder`Numbernull`1 for ascending, 2 for descending.
resetSortBooleanIf true, resets existing sort.
configObjectAdditional control attributes.

Raises — Error

updatePublishConfigurations#

javascript
updatePublishConfigurations(config={})

Update publish configurations for the specified view.

ParameterTypeDescription
configObjectContains the required control attributes.

Raises — Error

updateRow#

javascript
updateRow(columnValues, criteria, config={})

Update rows in the specified table.

ParameterTypeDescription
columnValuesObjectContains the values for the row. The column names are the key.
criteriaStringThe criteria to be applied for updating data. Only rows matching the criteria will be updated. Should be null for update all rows.
configObjectContains any additional control attributes.

Returns — Updated Columns List and Updated Rows Count.

Raises — Error

updateSharedDetails#

javascript
updateSharedDetails(config={})

Update shared details of the specified view.

ParameterTypeDescription
configObjectContains the control attributes.

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