Skip to main content

Hey,

I am currently reading a feature layer from AGOL, processing the data and writing the edited data to a new feature layer.

I have been able to extract the associated image attachments from my original table, but I am wondering if there is a way for me to insert these images to my output table?

Can we write these images, i have a GUID of the feature i need it to be attached to, I just don't know if it is possible through FME.

Any ideas?

@benvk At the moment, FME does not support writing attachments to AGOL or Portal feature services. However, it should be possible to use either the PythonCaller and the Esri Python API or the HTTPCaller and use the REST API Add Attachment


Hi @benvk, as Mark suggested you will have to do this using Python and Rest API. Here is a template that would be a good starting point. https://hub.safe.com/publishers/safe-lab/templates/attachmentwriter


Reply