Dashboard data expressions and pulling private data from Portal into ArcGIS Online

150
2
01-21-2022 02:50 AM
AGP
by
Occasional Contributor

Working with ArcGIS Online 9.4 and Portal 10.8.1.

We created a web map in ArcGIS Online with private Portal data and we are using it in an ArcGIS Online dashboard.  Don't ask about the reasons it is like this. That's something out of my control.

The fact is that I want to use a data expression in an indicator widget using that same Portal data but it's not working:

  • FeatureSetByPortalItem function returns this error: "NetworkError when attempting to fetch resource."
  • This video (see minute 30:36) suggests you can use global variable $map_itemID to access data referenced in the dashboard, which has sense since all widgets use the layers in the Map widgets inside the dashboard. But I don't see that global variable in the arcade editor and anyway it's not working.

My first question is: is it possible to access private Portal data from a data expression in an AGOL dashboard?

And second: is there any map/data requirements that will make the $map global variable available in the arcade editor?

0 Kudos
2 Replies
jcarlson
MVP Frequent Contributor

I've done this sort of thing. When I attempt it, I am prompted for my login credentials for the other portal, but I don't know if that's consistent with other users. It does seem possible, though.

To your second question, I'd say "no". I have to wonder if that video was demoing an earlier version of Data Expressions. In the Arcade docs, it's pretty clear:

Note: This profile does not expose any global variables.

- Josh Carlson
Kendall County GIS
0 Kudos
HuubZwart
Occasional Contributor

The user will be prompted for a portal login as well unfortunately. To circumvent this you would have to have access to the data directly, for example by setting up a collaboration between your portal and AGOL and access the resulting item in your dashboard. However, for the user to be able to see your data it would still require access to the data itself I believe. You could set a view on the AGOL item and share the view with the dashboard user if you want to limit the available fields or features.

0 Kudos