I'd like to be able to include the current map scale in the labels for a feature in Portal 10.5.1. The documentation on this page suggests that only the feature to be labelled is available as a global variable in Arcade expression
However within the playground section on the same site the current map scale is available under the labelling profile
If I try to use the map scale global in an Arcade label expression on a layer in a Portal 10.5.1 web map I get an error about the view identifier not being found.
I'm guessing that the reason it works in the playground is that the page is built with the JS API and that has a slightly different implementation of Arcade than Portal 10.5.1 perhaps? My question is will the map scale global be available in later versions of Portal?