Trouble Adding Attachment

705
1
Jump to solution
10-18-2012 12:17 AM
Town_ofSnowflake
Occasional Contributor
I'm trying to add an attachment to a feature in the callback of an applyEdits method in which the feature was created.  The applyEdits method is already working.  In order to add the attachment, I need the objectID of the new feature.  I've tried querying the feature service with the exact geometry that was used to create the feature in an attempt to get the ObjectID.  I'm not getting any results.
I am not getting results even when I query for a known objectID, or any results for any other attribute.

All of this is done in an activity without a map.

What am I missing?
0 Kudos
1 Solution

Accepted Solutions
Town_ofSnowflake
Occasional Contributor
Simple solution. Got the ObjectID from the FeatureEditResult returned on callback, then used te addattachment method from the FeatureLayer

View solution in original post

0 Kudos
1 Reply
Town_ofSnowflake
Occasional Contributor
Simple solution. Got the ObjectID from the FeatureEditResult returned on callback, then used te addattachment method from the FeatureLayer
0 Kudos