Select to view content in your preferred language

FindTask not returning Feature ID, 2.2 API

574
1
12-21-2011 01:32 PM
OlegKachirski
Occasional Contributor
As stated above, am getting Feature ID from Find task via REST endpoint:

ABC.1
    Feature ID: 703    
    Field Name: ANumber
    Layer: ANumbersLayer
    ANumber: ABC.1
    Shape: Polyline


When using FindTask in Silverlight API 2.2, get back everything but the Feature ID.

e.FindResults.Feature returns a graphic correctly with all the attributes but the Feature ID (ObjectID). (I am not adding ObjectID to the SearchFields collection, as I don't want for Find to search it.) Any way to get Feature ID from the FindTask?
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
There is no way to specify the output fields with the Find task.
The object ID should always be included in the attributes of the returned graphics.
Try to use fiddler to look at the request. This might give a clue.
0 Kudos