Hello,
I am very new to arcade.
Is it possible to vary the feature symbology of a layer by the number of records linked to it (the two data sources are linked by a 1:n relationship class)?
Thank you in advance.
@XanderBakker
In short, no. Arcade makes use of different profiles that vary in terms of what they can and cannot access. The symbology profile, in this case, cannot "look at" other features or layers, so you wouldn't be able to do this solely with Arcade.
If you need to do this kind of symbology, consider creating a calculated field for "number of related records", which you can then symbolize from.
The downside is that this field will alter my schema and it will be static. So I will have to recalculate the field when the data changes....
It will alter your schema, yes. But you can define an Attribute Rule on the related table to update the count field when the data in the related table changes. See this comment for an example.
At the moment (and probably for the forseeable future), that's the closest you will come to what you want.
If your data "lives" somewhere that can't take advantage of attribute rules, it is also possible to write a really simple python script to handle this calculation and have it run at regular intervals.