Skip to main content

Hello,

We are trying to manage changing attachments on a feature layer on ArcGIS Online using FME. We can successfully read, compare, and add attachments using a combination of HTTP Callers and Python Callers. However, we are having difficulties deleting attachments that are no longer relevant. The easy solution would be to delete the entire record but we are trying to avoid that.

Has anyone had success at using the deleteAttachments POST request outlined in the ESRI’s api guide.

https://developers.arcgis.com/rest/services-reference/enterprise/delete-attachments/

Or has anyone found another way of managing attachments?

Thanks,

Hi,

Here is an example of it in action in the attached 2019.1 workspace. I created 3 features, and added 2 attachments to the first feature, and 1 attachment to the second. I then deleted one specific attachment off each feature. The process is quickly thrown together, so it is missing all the checks and balances, like checking the httpcallers for errors (e.g. Esri always respond with http status 200 and provide the error as the response).

Cheers,

Todd

 

 


Thanks Todd! This worked great!


Reply