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 ...
Earth Imagery at Work MOOC Starts February 7
Alphanumeric Values Missing in New Table
Export DataGrid Or FeatureGrid to EXCEL
Frequently Asked MOOC Questions - Earth Imagery at Work
Earth Imagery at Work AMA (Ask Me Anything): Friday Oct 20, 10:30 am-11:30am PT