exportItem

exportItem

constant
Function
exportItem(requestOptionsIExportItemRequestOptions): Promise<IExportItemResponse>

Exports an item from the portal. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { exportItem } from "@esri/arcgis-rest-portal";

exportItem({
  id: '3daf',
  owner: 'geemike',
  exportFormat: 'CSV',
  exportParameters: {
    layers: [
      { id: 0 },
      { id: 1, where: 'POP1999 > 100000' }
    ]
  },
  authentication,
})
Parameters
ParameterTypeNotes
requestOptions
IExportItemRequestOptions

Options for the request

Returns 
Promise<IExportItemResponse>

A Promise<IExportItemResponse>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.