I am trying to get the geometry of the polygon using UNIQPOLYID. UNIQPOLYID is the display field.function searchGeometry(polyId){ queryTask = new esri.tasks.QueryTask(URLGoesHere); query = new esri.tasks.Query(); query.returnGeometry = true; query.text = polyId; queryTask.execute(query, queryResults); } function queryResults(featureSet){ alert(featureSet.features); //undefined //Should get the geometry of the feature and zoom into it. }"featureSet.features" is undefined in my queryResults(featureSet). How should I get the the feature with the provided polyId so that I can zoom in to the geometry.