Select to view content in your preferred language

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

109
7
Jump to solution
yesterday
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
7 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
DavidSolari
MVP Regular Contributor

The ArcGIS form spec now includes dedicated attachment questions, and those questions require the upgraded attachment table schema. It looks like most ESRI teams have gone ahead and assumed every attachment table uses this new format, which is causing all sorts of issues for Enterprise users with registered EGDB data. I'd advise getting your attachments upgraded ASAP, I doubt this assumption is getting rolled back going forward.

CraigGillgrass
Esri Regular Contributor

@DavidSolari for Enterprise feature services, yes, they will to be updated. We do have information on this in the Field Maps form documentation. We are looking at adding this to the Map Viewer form documentation.

https://doc.arcgis.com/en/field-maps/latest/prepare-maps/configure-the-form.htm#ESRI_SECTION1_32C758...

 

0 Kudos
CraigGillgrass
Esri Regular Contributor

@Trippetoe does the layer have a form authored for it?  If so, have you made any edits to the form since the release?

0 Kudos
Trippetoe
Frequent Contributor

@CraigGillgrass You're initial recommendation to read the blog did the trick for me. I admit i did have to read it a couple times to get the important piece about using the 'General' type of Attachment element. It seems that when using that element the 'keywords' parameter is not added to the query string. So all of our existing attachments are not filtered out. 

Thank you for tip!

0 Kudos
CraigGillgrass
Esri Regular Contributor

good news, glad that blog helped

0 Kudos