Select to view content in your preferred language

In the Edit widget, queryAttachments request includes 'keywords' query parameter which excludes all our attachments

54
2
Jump to solution
8 hours ago
Labels (1)
Trippetoe
Frequent Contributor

Hello.

The map in our Experience includes a layer with attachments enabled. When performing an 'Edit' widget query, the queryAttachments query string includes the argument 'keywords=photos'. Because none of our attachments have keywords, no attachments are returned. When doing an 'Info' widget query, 'keywords' is not included in the query string so the associated images/attachments are returned as expected.

Edit URL:

https://services2.arcgis.com/<foo>/arcgis/rest/services/<bar>/FeatureServer/0/queryAttachments?f=json&token=<token>&keywords=photos&objectIds=145934&returnMetadata=true

Info URL:

https://services2.arcgis.com/<foo>/arcgis/rest/services/<bar>/FeatureServer/0/queryAttachments?f=jso...

So a couple of questions:

  • Why does the Edit query include the keywords query paramater?
  • Can we configure the Edit query so it does not include the keywords query parameter? If not, can we configure what the keywords value is - maybe setting it to empty string?
  • Is there a way that we can update our attachments (1000s of them) to set a keywords value? How can we set the attachments keywords value on future attachments added to the layer?

Thank you.

 

0 Kudos
1 Solution

Accepted Solutions
CraigGillgrass
Esri Regular Contributor
2 Replies
CraigGillgrass
Esri Regular Contributor

this blog may help answer you questions:
https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/attach-more-value-to-your-fo...

If it doesn't please let us know.

Trippetoe
Frequent Contributor

@CraigGillgrass Thanks for the link. The blog post certainly provides some context for what has changed. I'm still unsure of why the keywords parameter gets added to the queryAttachments request, or how i can control or configure what values it includes. Is there a blog that explains that?

I'm probably missing a lot of important details and nuance, but it seems like i need to redo any maps used in ExBldr that includes layers with attachments (assuming we want to be able to edit the data) - is that correct?

0 Kudos