DocsReferenceViewAPI

Reference

ViewAPI

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

ViewAPI exposes 51 methods. Method names are PascalCase (exported) 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#

go
AddAggregateFormula(formulaname string, expression string, config map[string]interface{}) (formulaid string, serverexception *ServerException)

Add an aggregate formula in the specified table.

ParameterDescription
formulanameName of the formula to be created.
expressionFormula expression.
configContains the control configurations.

Returns — Returns id of the created formula.

AddColumn#

go
AddColumn(columnname, datatype string, config map[string]interface{}) (columnid string, serverexception *ServerException)

Add a column in the specified table.

ParameterDescription
columnnameThe name of the column.
datatypeThe data-type of the column.
configContains the control configurations.

Returns — Returns id of the new column.

AddFavorite#

go
AddFavorite() (serverexception *ServerException)

Adds a specified view as favorite.

AddFormulaColumn#

go
AddFormulaColumn(formulaname string, expression string, config map[string]interface{}) (formulaid string, serverexception *ServerException)

Add a formula column in the specified table.

ParameterDescription
formulanameName of the formula column to be created.
expressionFormula expression.
configContains the control configurations.

Returns — Returns id of the formula created.

AddLookup#

go
AddLookup(columnid, refviewid, refcolumnid string, config map[string]interface{}) (serverexception *ServerException)

Add a lookup in the specified child table.

ParameterDescription
columnidThe id of the column.
refviewidThe ID of the table contains the parent column.
refcolumnidThe ID of the parent column.
configContains the control configurations.

AddRow#

go
AddRow(columnvalues, config map[string]interface{}) (data interface{}, serverexception *ServerException)

Add a single row in the specified table.

ParameterDescription
columnvaluesContains the values for the row. The column names are the key.
configContains the control configurations.

Returns — Returns details of the added rows as interface.

AddTagsToView#

go
AddTagsToView(tagids interface{}, config map[string]interface{}) (serverexception *ServerException)

Adds multiple tags to the specified view.

ParameterDescription
tagidsTag ids to be associated with the view.
configContains any additional control configurations.

AutoAnalyse#

go
AutoAnalyse(config map[string]interface{}) (serverexception *ServerException)

Auto generate reports for the specified table.

ParameterDescription
configContains the control configurations.

AutoAnalyseColumn#

go
AutoAnalyseColumn(columnid string, config map[string]interface{}) (serverexception *ServerException)

Auto generate reports for the specified column.

ParameterDescription
columnidThe id of the column.
configContains the control configurations.

CopyFormulas#

go
CopyFormulas(formulanames interface{}, destworkspaceid string, config map[string]interface{}, destorgid string) (serverexception *ServerException)

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

ParameterDescription
formulanamesThe name of the formula columns to be copied.
destworkspaceidThe ID of the destination workspace.
configContains the control configurations.
destorgidId of the organization where the destination workspace is present.

CreateAlert#

go
CreateAlert(alertname string, scheduledetails map[string]interface{}, rules interface{}, config map[string]interface{}) (alertid string, serverexception *ServerException)

Create a data alert for the specified view.

ParameterDescription
alertnameName of the data alert.
scheduledetailsContains the schedule configurations of the data alert.
rulesContains the rules to be evaluated by the data alert.
configContains any additional control configurations.

Returns — Returns the new data alert id as string.

CreatePrivateUrl#

go
CreatePrivateUrl(config map[string]interface{}) (privateurl string, serverexception *ServerException)

Create a private URL for the specified view.

ParameterDescription
configContains the control configurations.

Returns — Returns the private URL.

CreateSimilarViews#

go
CreateSimilarViews(refviewid, folderid string, config map[string]interface{}) (serverexception *ServerException)

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

ParameterDescription
refviewidThe ID of the reference view.
folderidThe folder id where the views to be saved.
configContains the control configurations.

Delete#

go
Delete(config map[string]interface{}) (serverexception *ServerException)

Delete a specified view in the workspace.

ParameterDescription
configContains the control configurations.

DeleteAggregateFormula#

go
DeleteAggregateFormula(formulaid string, config map[string]interface{}) (serverexception *ServerException)

Delete the specified aggregate formula.

ParameterDescription
formulaidId of the aggregate formula to be deleted.
configContains the control configurations.

DeleteColumn#

go
DeleteColumn(columnid string, config map[string]interface{}) (serverexception *ServerException)

Delete a specified column in the table.

ParameterDescription
columnidThe id of the column.
configContains the control configurations.

DeleteFormulaColumn#

go
DeleteFormulaColumn(formulaid string, config map[string]interface{}) (serverexception *ServerException)

Delete the specified formula column.

ParameterDescription
formulaidId of the formula column to be deleted.
configContains the control configurations.

DeleteRow#

go
DeleteRow(criteria string, config map[string]interface{}) (deletedCount float64, serverexception *ServerException)

Delete rows in the specified table.

ParameterDescription
criteriaThe criteria to be applied for deleting data. Only rows matching the criteria will be deleted. Should be null for delete all rows.
configContains the control configurations.

Returns — Returns deleted rows count.

EditAggregateFormula#

go
EditAggregateFormula(formulaid string, expression string, config map[string]interface{}) (serverexception *ServerException)

Edit the specified aggregate formula.

ParameterDescription
formulaidId of the aggregate formula to be updated.
expressionFormula expression.
configContains the control configurations.

EditFormulaColumn#

go
EditFormulaColumn(formulaid string, expression string, config map[string]interface{}) (serverexception *ServerException)

Edit the specified formula column.

ParameterDescription
formulaidId of the formula column to be updated.
expressionFormula expression.
configContains the control configurations.

GetAggregateFormulas#

go
GetAggregateFormulas() (formulas interface{}, serverexception *ServerException)

Returns list of all aggregate formulas for the specified table.

Returns — Returns aggregate formula list as interface.

GetAlertsInView#

go
GetAlertsInView() (alerts interface{}, serverexception *ServerException)

Returns list of data alerts configured for the specified view.

Returns — Returns the data alerts list as interface.

GetColumnDependents#

go
GetColumnDependents(columnid string) (dependents interface{}, serverexception *ServerException)

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

ParameterDescription
columnidThe id of the column.

Returns — Returns dependent list as interface.

GetEmbedUrl#

go
GetEmbedUrl(config map[string]interface{}) (embedurl string, serverexception *ServerException)

Returns embed URL to access the specified view.

ParameterDescription
configContains the control configurations.

Returns — Returns the embed URL.

GetFormulaColumns#

go
GetFormulaColumns() (formulas interface{}, serverexception *ServerException)

Returns list of all formula columns for the specified table.

Returns — Returns formula column list as interface.

GetLastImportDetails#

go
GetLastImportDetails() (importDetails interface{}, serverexception *ServerException)

Returns last import details of the specified view.

Returns — Returns the last import details as interface.

GetMyPermissions#

go
GetMyPermissions() (permissions interface{}, serverexception *ServerException)

Returns permissions for the specified view.

Returns — Returns the permission details as interface.

GetPrivateUrl#

go
GetPrivateUrl(config map[string]interface{}) (privateurl string, serverexception *ServerException)

Returns private URL to access the specified view.

ParameterDescription
configContains the control configurations.

Returns — Returns the private URL.

GetPublishConfigurations#

go
GetPublishConfigurations() (publishinfo interface{}, serverexception *ServerException)

Returns details of the specified slideshow.

Returns — Returns publish configurations for the specified view.

GetTableMetadata#

go
GetTableMetadata() (metadata interface{}, serverexception *ServerException)

Retrieves metadata information for the current table.

Returns — Returns table metadata details as interface.

GetViewDependents#

go
GetViewDependents() (dependents interface{}, serverexception *ServerException)

Returns list of dependents views for the specified view.

Returns — Returns dependent list as interface.

GetViewMetadataForAlert#

go
GetViewMetadataForAlert() (metadata interface{}, serverexception *ServerException)

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

Returns — Returns the view metadata for data alert configuration as interface.

GetViewTags#

go
GetViewTags() (tags interface{}, serverexception *ServerException)

Returns the list of tags associated with the specified view.

Returns — Returns tag list as interface.

GetViewUrl#

go
GetViewUrl(config map[string]interface{}) (viewurl string, serverexception *ServerException)

Returns the URL to access the specified view.

ParameterDescription
configContains the control configurations.

Returns — Returns the view URL.

HideColumns#

go
HideColumns(columnids interface{}) (serverexception *ServerException)

Hide the specified columns in the table.

ParameterDescription
columnidsIds of the column to be hidden.

MakeViewPublic#

go
MakeViewPublic(config map[string]interface{}) (privateurl string, serverexception *ServerException)

Make the specified view publically accessible.

ParameterDescription
configContains the control configurations.

Returns — Returns the view URL.

RefetchData#

go
RefetchData(config map[string]interface{}) (serverexception *ServerException)

Sync data from available datasource for the specified view.

ParameterDescription
configContains any additonal control configurations.

RemoveFavorite#

go
RemoveFavorite() (serverexception *ServerException)

Remove a specified view from favorite.

RemoveLookup#

go
RemoveLookup(columnid string, config map[string]interface{}) (serverexception *ServerException)

Remove the lookup for the specified column in the table.

ParameterDescription
columnidThe id of the column.
configContains the control configurations.

RemovePrivateAccess#

go
RemovePrivateAccess() (serverexception *ServerException)

Remove private link access for the specified view.

RemovePublicAccess#

go
RemovePublicAccess() (serverexception *ServerException)

Remove public access for the specified view.

RemoveTagsFromView#

go
RemoveTagsFromView(tagids interface{}, dissociateAll bool, config map[string]interface{}) (serverexception *ServerException)

Removes multiple tags from the specified view.

ParameterDescription
tagidsTag ids to be dissociated. Pass nil when dissociateAll is true.
dissociateAllTo dissociate all tags from the view.
configContains any additional control configurations.

Rename#

go
Rename(viewename string, config map[string]interface{}) (serverexception *ServerException)

Rename a specified view in the workspace.

ParameterDescription
viewenameThe new name of the view.
configContains the control configurations.

RenameColumn#

go
RenameColumn(columnid, columnname string) (serverexception *ServerException)

Rename a specified column in the table.

ParameterDescription
columnidThe id of the column.
columnnameThe new name of the column.

ReorderColumns#

go
ReorderColumns(columnids []interface{}, config map[string]interface{}) (serverexception *ServerException)

Updates the column order of the current table.

ParameterDescription
columnidsA list containing the full set of column IDs in the new order in which they should appear.
configContains any additional control parameters.

SaveAs#

go
SaveAs(newviewname string, config map[string]interface{}) (viewid string, serverexception *ServerException)

Copy a specified view within the workspace.

ParameterDescription
newviewnameThe name of the new view.
configContains the control configurations.

Returns — Returns id of the new view.

ShowColumns#

go
ShowColumns(columnids interface{}) (serverexception *ServerException)

Show the specified hidden columns in the table.

ParameterDescription
columnidsIds of the column to be shown.

SortDataByColumns#

go
SortDataByColumns(columns []interface{}, sortorder int, resetsort bool, config map[string]interface{}) (serverexception *ServerException)

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

ParameterDescription
columnsA list of column IDs to sort by.
sortorderSorting order indicator.
resetsortIf true, resets any existing sort configuration.
configContains any additional control parameters.

UpdatePublishConfigurations#

go
UpdatePublishConfigurations(config map[string]interface{}) (serverexception *ServerException)

Update publish configurations for the specified view.

ParameterDescription
configContains the control configurations.

UpdateRow#

go
UpdateRow(columnvalues map[string]interface{}, criteria string, config map[string]interface{}) (data interface{}, serverexception *ServerException)

Update rows in the specified table.

ParameterDescription
columnvaluesContains the values for the row. The column names are the key.
criteriaThe criteria to be applied for updating data. Only rows matching the criteria will be updated. Should be null for update all rows.
configContains the control configurations.

Returns — Returns details of the updated rows as interface.

UpdateSharedDetails#

go
UpdateSharedDetails(config map[string]interface{}) (serverexception *ServerException)

Update the existing sharing configuration for views.

ParameterDescription
configContains the control configurations.
  • 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