Hello Everyone !
How can I use Arcade to create custom expressions to be used with data driven elements (indicators, charts, etc). I understand that the global variables are not available here, but I'm already not able to make it work with FeatureSetByPortalItem. Am I missing something ? Thank you.
var p = "https://arcgis.xxx-group.com" ;
var item_id = "102118ab4f764xxxafda659ad6a7d335";
var layer_id = 0 ;
var fs = FeatureSetByPortalItem(Portal(p), item_id, layer_id, ["yop"], false)
Execution Error:Unable to load https://arcgis.xxx-group.com/sharing/rest/portals/self?f=json&culture=en status: 404
Solved! Go to Solution.
Maybe try appending "/portal" to the URL?
Maybe try appending "/portal" to the URL?
Thank you Josh. Now that I have a FeatureSet, how can I leverage my few fields ? I just need an expression to caculate a new value for each feature based on 2 other fields (ex: y = a/b), so I can use it with a chart element. Without the global variables, I'm a bit lost. Should I loop through the FeatureSet ? Thank you.