Skip to main content
Solved

Can we insert image attachments to an AGOL feature layer?

  • April 10, 2020
  • 2 replies
  • 253 views

benvk
Contributor
Forum|alt.badge.img+8

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?

Best answer by rahulsharma

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+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


rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • April 13, 2020

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