Add attachments
We have workflows that place points and polygons and would like to call to an Attachment activity immediately following the point or poly placement. Would anyone be willing to share their workflows that do such things? We are on release 4.9.2.46. Thank you.
0
-
Hi James,
We are adding attachments to newly added points, but not sure it is the most efficient method. When a point is added, it is calculating the Edit Date (a time stamp) and the Editor Name attributes (from get current user activity) on the new feature. I'm then querying the feature service to get the record that has that user name and exact edite date (date/time). With our workflow, I am comfortable making the assumption that the user is only adding one point at that exact moment in time. From there, I can get the ID of the returned feature and use that in the Attachment activity. Again, probably not the most efficient, but it gets the job done for us.0 -
You can get the ID of the added point from the Edit Results output parameter of the Add Features parameter. This is a list of results, you can get the objectid with myeditresultsvariable.First.ObjectID.
See also http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.EditResultItem_members.html0 -
Thanks Stephanie and Nico. If possible, could either of you send the xaml code, or post it? That way I will be able to copy activities and model the correct behavior. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare