I'm using Arcade in ArcGIS Pro and trying to label a feature using one field if under a certain map scale, and using a different field if above that scale. So when zoomed in close you get the full label and when zoomed out it is abbreviated.
It seems that according to this documentation, the profile $view.scale should be compatible in ArcGIS Pro. The expression validates but then gives a Drawing Error: Object not found $view.
Also, according to this old Ideas submission this functionality is marked as Implemented. Using the same expression in a webmap works, but again according to the documentation linked above it seems it should function in Pro as well.
What am I missing?
Which version of ArcGIS Pro are you using? According to the documentation, $view was implemented in Arcade 1.30. In the version matrix, this version is available in ArcGIS Pro 3.5 only.