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?