Attachment Metadata - enable "returnMetadata" on service?

301
2
08-02-2023 08:57 AM
MaryGraceMcClellan
New Contributor III

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-l... )

0 Kudos
2 Replies
A_Wyn_Jones
Esri Contributor

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-l...

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=...

Please let me know if you get this working

"We've boosted the Anti-Mass Spectrometer to 105 percent. Bit of a gamble, but we need the extra resolution."
0 Kudos
MaryGraceMcClellan
New Contributor III

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. 

0 Kudos