Get active Portal in ArcGIS Arcade when executing in Dashboard

706
2
02-23-2023 10:53 AM
Labels (1)
PhilipPenn1
New Contributor II

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 in advance,

 

Phil

Tags (1)
2 Replies
jcarlson
MVP Esteemed Contributor

I think you should post this as an Idea rather than a question.

The GetUser function behaves in the way that you're describing, where it defaults to the currently active Portal when none is specified. It would certainly be a useful feature, and I'd give it an upvote!

- Josh Carlson
Kendall County GIS
ViktoriaMagnis
New Contributor II

Hi 

I was just wondering if there was a solution to this issue?

Thanks

Vicki 

0 Kudos