Hello,
is there a way in ArcGIS Maps SDK for JavaScript how to add new feature with attachments to FeatureService in single step (using only one HTTP request in the background).
Currently, I'm able to do it by using the applyEdits() method, which adds the new feature, then I make a query based on the globalid of this new feature and use the addAttachment() method to join attachments.
applyEdits() method has a parameter addAttachments in the API documentation, too. Howewer, I think that I still need to know the globalid in that case.
Ideally, I would only need to make one request for some reasons.
Thank for replies.