Solved

Can we insert image attachments to an AGOL feature layer?

  • 10 April 2020
  • 2 replies
  • 49 views

Badge +7

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?

icon

Best answer by rahulsharma 13 April 2020, 20:36

View original

2 replies

Badge +2

@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

Badge +8

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