Search…
⌃K
Links

shareView

To return a URL of a given view
With this function, you can share a table view per script. If you don't specify the view to be shared, the default view will be selected.
Optionally, you can also define the format, for example, PDF, HTML, CSV, XLSX, or JSON.
This function doesn't work in a formula field because it's modifying data.
This function will return a link, which can be saved in a URL or text field.

Syntax

shareView(string)
shareView(string, string)
shareView(string, JSON)
shareView(string, string, JSON)

Return

link

Examples

shareView(myTable) To return an URL of the default view for sharing.
1
shareView("Events")
shareView(myTable, myView) To return an URL of a given view of a given table for sharing.
1
shareView("Events", "New York")
shareView(myTable, options) To return an URL of a given table in a given format (PDF, HTML, CSV, XLSX, or JSON) for sharing.
shareView(myTable, myView, options) To return an URL of a given view of a given table in a given format (PDF, HTML, CSV, XLSX, or JSON) for sharing.
1
URL := shareView("Events", "San Francisco", {
2
contentType: "pdf"
3
})

See also

unshareView, which unshares a given view of a given table.
unshareAllViews, which unshares all views of a given table.
Last modified 1mo ago