The Esri Community
Services & Programs
GeoNet Resource Hub
ArcGIS REST API
to create and rate content, and to follow, bookmark, and share content with other members.
all fields but a few
Discussion created by
on Dec 23, 2013
on Dec 23, 2013 by crafty762
Show 0 Likes
is it possible to get all fields but a few?
something like using OutFields="*" and to filter out a few
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Dec 23, 2013 11:52 AM
Nope. You have to specify all of the fields you want returned OR you get them all. To make life easier, though, you can copy and paste the field names you want returned in your query. To get the list of available fields to copy, you can view the properties of the layer from your service in the REST API and just delete the unwanted fields and text. From your service, click the Layer Name / ID you wish to "filter" and then scroll down toward the bottom to get the Fields section. Copy all of it to something like Notepad, then delete the extra stuff and bullets you don't want. You can then insert the trimmed-down, comma-separated list of fields into your REST query.
Show 0 Likes
Retrieving data ...
Facilitated Discussion Questions - March 2019
How to delete basemap .tpk?
Is there a quick way to duplicate a layout in ArcGIS Pro?
Now Live: Esri Roads and Highways for Server 10.6.1 Patch 1
ArcGIS Server (non-GUI Linux) Licence Authorization Fails?