Select to view content in your preferred language

De-mystify Experience Builder URL parameters

31100
52
Jump to solution
09-24-2020 01:22 PM
JayJohnsonWashoeCounty
Frequent Contributor

When I navigate to different features in Experience Builder I see a URL that (apparently) includes some identifier related to either the feature I've clicked on or maybe the location.  Can anyone de-mystify the RED part of the Experience Builder URL below?  Maybe Jianxia Song‌?

https://experience.arcgis.com/experience/2fe9e44b691a4e32a9f0b84df16531c0?data_id=dataSource_3-Elect... 

Obviously, what I'd like to do is be able to build URL strings to be able to direct users from an external web page to a specific location/feature within Experience Builder.

However, even though this portion of the URL appears to change as you navigate to different features/locations, it doesn't APPEAR to do anything at all if you past the whole URL into a new browser tab.  

Thanks,

Jay

Jay
Washoe County GIS
Tags (2)
52 Replies
TimConfare2
Regular Contributor

I totally agree.  I've tried everything given the "documentation" but nothing works.  I would also like an example from the developers version as that appears to be different then the online version.

0 Kudos
ANRGIS
by
Frequent Contributor

Totally agree. I've been banging my head trying to figure out how to select a layer in our ExB application using a coordinate, but can't seem to figure out exactly what I'm doing wrong. <Geometry JSON> is not entirely helpful, especially if the application is picky about how it's formatted. What would be fantastic is having a tool/utility for building a URL with parameters based on the widgets/data sources you have in your map. Hacking the "share tool" shouldn't be the method for doing it and it is not helpful for capabilities such as selecting data. The resulting URL is essentially the selection once it's been completed, not the query itself.

0 Kudos
amitchinson
Occasional Contributor

How do you dynamically use URL parameterisation to select data by ObjectID? I've looked at the documentation here 

https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm#ESRI_SECTION1_0A01...

and it looks like this is the relevant example and which would get the feature with ObjectID 1:

https://experience.arcgis.com/experience/<AppId>/#data_s=id:widget_1-dataSource_1-1871234a785-layer-2:1 

 

I have a Survey123 form which is within an Experience. I'm trying to use URL parameterisation to create a dynamic URL at the end of the form/on form submission, which will take the user to a map page in the Experience and use the ObjectID to select the data point they just created. So I want to pass the ObjectID value in as a parameter to the URL.


I have it working to select the point using a where clause with globalId below

https://experience.arcgis.com/experience/<experience ID>/page/<page name>#data_s=where%3A<data source and layer>%3Aglobalid%3D'@[globalId]'

 

But when I try replacing globalId with objectId it's not returning any objectID values (I don't think it's recognising objectId as a valid field, although it's definitely in my data feature service).

0 Kudos