Editing attributes of a feature just added
Hi all,
I have a workflow where I created a point feature, added that feature to the feature layer, then want to add attachments. To do that, I'll have to obtain the ObjectID of the feature, I have tried various ways but none worked. Any idea?
1. Query the feature layer using the objectID of the created feature graphic.
2. Query the feature layer using the geometry of the point.
The above worked in previous workflows I've developed (although I'm not sure why 1 would've worked because the created feature isn't in the feature layer yet so it shouldn't have an objectID?). And 2 only works with line or polygon features.
Thanks!
-
The Add Features activity will return the objectid of the feature you just added, e.g. =$addFeatures1.results[0].objectId. You should be able to use that value in Add Attachment directly. No need to re-query the layer
0 -
Hi Berend,
I've tried too and it returned null..
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare