Select to view content in your preferred language

Field Maps link - referenceContext=showFeature causes error

111
3
Monday
TL2
by
Frequent Contributor

Using the example below I receive an error message 

Unable to Open Link

The referenceContext Parameter is required.

 

showFeature

Select a feature and open its pop-up from a map or task integration

  • itemID (optional)
  • referenceContext=showFeature
  • featureSourceURL
  • featureID

 

 

Further, showFeature is not listed as a supported value for referenceContext:

referenceContext

What the app should do, if anything, once open and the user is signed in

The following values are supported:

  • addFeature
  • addRelatedFeature
  • center
  • open
  • search
  • shareLocation
  • updateFeature

Anyone able to reproduce?

0 Kudos
3 Replies
AlexHogan
Esri Contributor

Hi @TL2 

To use the show feature parameter, you will need to specify the GlobalID of the feature you are wanting to display the pop-up for, below is an example of a working URL for the show features.

When clicking on the link in your post, in looks different to the text appearing that you sent through, could you please provide the full link?

Here is a working URL parameter for the show feature:

https://fieldmaps.arcgis.app/?referenceContext=showFeature
&ItemId=4ac74eeff0f7452998e4d057e8a6dc9a
&featureSourceURL=https://services.arcgis.com/j3JVMGycAs95su2E/arcgis/rest/services/stormwaterpits/F...
&featureID=14ef546c-5ae1-4e8d-ae14-781e3b519d1f

Thanks,

Alex

0 Kudos
TL2
by
Frequent Contributor

Can you confirm this works?  I am not sure if the map and service are shared publicly but when I email this link to myself, I get the same error message (Unable to Open Link The referenceContext Parameter is required.) and not a permissions error.  Field maps 25.3.1

0 Kudos
AlexHogan
Esri Contributor

Hi @TL2 

The link was an example of the formatting of the URL to use the ShowFeature parameter, I had not shared the map publicly, 

Field Maps does require the URL to be encoded. Below is an example of what the URL looks like encoded:

https://fieldmaps.arcgis.app/?referenceContext=showFeature&mapId=4ac74eeff0f7452998e4d057e8a6dc9a&fe...

You could use the encode function in ArcGIS Arcade, or also copy and paste the url into the web browser and it should encode this for you as well,

 

Thanks

Alex

0 Kudos