I have a service (published from Server) that I'm using in an editing app on AGOL. I'm trying to write a script to pull metadata from the images, but I can't figure out how to access the image metadata. From what I've found, there is a parameter called "returnMetadata", which should be set to True on the service, but I can't see where or how to enable that. (source: https://developers.arcgis.com/rest/services-reference/enterprise/query-attachments-feature-service-layer-.htm )
Could you please ensure that "name": "exifInfo" is in the layer's attachmentProperties?
https://developers.arcgis.com/rest/services-reference/enterprise/query-attachments-feature-service-layer-.htm#:~:text=returnMetadata
Here's some documentation around enabling attachmentProperties on a feature service in ArcGIS Enterprise: https://developers.arcgis.com/rest/services-reference/enterprise/layer-feature-service-.htm#:~:text=The%20attachmentProperties%20object%20is%20included
Please let me know if you get this working
Sorry for the late reply. I think the main issue I'm facing is that the layer is hosted on AGOL, not Enterprise. I'm going to try publishing from SDE and see if I can get better results with that service.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.