Get extent of polygons

Discussion created by anaish on Apr 14, 2011
Latest reply on Apr 26, 2011 by epaitz-esristaff
Hello, I would like to know if there is a REST service (and perhaps a JSAPI function) that can get the extent of a set of polygons without having to return the geometry to the browser.

So it would work like this:

1) Make a rest query to ArcGIS server with a where clause like "STATE_CODE in ('TX','CA','NY')"
2) Return a JSON esri.geometry.Extent object.

Does this function, or something similar exist?