Select to view content in your preferred language

Get active Portal in ArcGIS Arcade when executing in Dashboard

381
0
02-28-2023 10:19 AM
Labels (2)
PhilipPenn1
Emerging Contributor

Currently in a data expression in an Enterprise Portal 11.0 dashboard if I want to get a Portal I have to hardcode the Portal URL

var portal = Portal("https://myportal/portal");

 

This causes headaches when migrating the script from one environment to another. Given that this is executing...from within Portal itself, can I not just get the currently active/signed-in Portal i.e.

var portal = Portal();

 

thanks,

 

Phil 

0 Replies