I am using Power Automate to generate automatic emails when a point is added to a feature service. In that email I would like to include a link to an Experience Builder app that will select and zoom to the new point using a unique attribute. The Experience Builder app is built in Portal 11.5.
Esri's documentation uses this as an example of a where clause to select based on attribute:
https://portal.arcgis.esri.com/portal/apps/experiencebuilder/experience/?id=<AppId>#data_s=where:widget_1-dataSource_1-1871234a785-layer-2:a>1
I'm assuming the widget ID I should be using is the one for the Map widget (the app does not use a Select widget). I have the layer's data source ID from ArcGIS Online Assistant. Based on what I assume the example is telling me, my URL should be:
https://portal.arcgis.esri.com/portal/apps/experiencebuilder/experience/?id=xyzxyzxyzxyzxyz/#data_s=where:widget_1-dataSource_1-1871234a785-layer-2:ID='AAA1234'
Or with encoding:
https://portal.arcgis.esri.com/portal/apps/experiencebuilder/experience/?id=xyzxyzxyzxyzxyz/#data_s=where:widget_1-dataSource_1-1871234a785-layer-2:ID%3D%27AAA1234%27
However neither of these work. I'm fairly new to configuring URL Parameters for EXB and not sure where I'm going wrong. Any help would be appreciated.
Thank you.
Have you tried opening your Experience Builder, clicking on one of the objects in your desired layer, and seeing what the address bar looks like? When I did this in a sample experience builder I created, my link looked like the following (replaced with similar parameters to your example):
https://portal.arcgis.esri.com/portal/apps/experiencebuilder/experience/?id=xyzxyzxyzxyzxyz#data_s=id%3AdataSource_1-123456789-layer-2%3A'AAA1234'
I highlighted one difference in the URL, and it doesn't seem to include the "ID=" part towards the end. When I copied and pasted that link into a new tab, it opened with the same object selected. It also changed to the correct different object if I changed the ID at the end. In my case the ID was the OBJECTID, so keep an eye out for whether that's the case in your project.
If similar parameters aren't showing up for you, try looking at your Experience Builder's options under the "Manage URL status" menu in settings.
Good luck, I would be interested to know how this turns out for you!