How come using the Arcade function GetUser() in a WebMap popup expression I get the following error when testing the expression:
Execution Error:Runtime Error: Function Not Found: GetUser
See the function reference here: https://developers.arcgis.com/arcade/function-reference/portal_functions/#getuser
I thought one of the cool things about Arcade was that the same code could be used in both desktop and web apps?
Thanks,
Solved! Go to Solution.
It depends on what Profile you're in. You can test things out in the Playground to see what functions are or are not available in each.
I can confirm that the function is indeed available and we use it in some of our Dashboards, but it's not going to show up in every single context.
It may also depend on what version desktop / Portal you're using, as GetUser was only introduced as of Pro 2.7 and Portal 10.9.
It depends on what Profile you're in. You can test things out in the Playground to see what functions are or are not available in each.
I can confirm that the function is indeed available and we use it in some of our Dashboards, but it's not going to show up in every single context.
It may also depend on what version desktop / Portal you're using, as GetUser was only introduced as of Pro 2.7 and Portal 10.9.
Josh,
Thanks for the reply. As you point out it looks like my issue has to do with the GetUser() function not being available on the Portal version I am using. I tested it on a newer instance of portal and found that is available there.
Thanks,