Query Data Elements (Feature Service)

URL:
https://<root>/<serviceName>/FeatureServer/queryDataElements
Methods:
GET
Version Introduced:
10.6

Description

The queryDataElements resource provides access to valuable information for datasets exposed through a feature service such as a feature layer, a table or a utility network layer. The response is dependent on the type of layer that is queried.

The supportsQueryDataElements resource property is enabled for nonhosted feature services published using ArcGIS Enterprise 10.6 or later. This property is false or absent if not supported for the feature service.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

layers

Array of layerIds for which to get the data elements.

Syntax: layers=[<layerId>]

Example:

Use dark colors for code blocksCopy
1
layers=[0,8]

Example usage

Enter an array of layerIds to return the data elements from the USA feature service:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/USA/FeatureServer/queryDataElements

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
{
"layerDataElements":
[
	{
		"layerId": 0,
		"dataElement": {...}
	},
 ...
]
}

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