Hello,
i have a problem with a graphic which i got through 2 different kind of requests. I cant perfrom the method getObjectId from the graphic. It always retruns null but in the attributes there is the objectId.
My first attempt was with the method queryFeatures directly on the featureLayer. The problem with this was in the version of the api 4.22.0 seems to be a issue with the error handling. The request failed randomly. But with the result of this attempt i could perfrom the method getObjectId.
the other two attempts was with esriRequest and executeQueryJSON.
With both of these request i got all features but i cant get the objectid although it is there.
I also tried to create a new Graphic with the layer from the request an i converted the result from esriRequest with fromJSON but i cant get the objectID.
best regards
nico