Hi there,
I am trying to use attribute rules with Arcade to automate a field when a new attribute is added to my map. I figured out the first part to get my file number to generate:
var date = $feature.date_issued
var year = Text(Year(date), '0000');
var month = Text(Month(date), '00');
var day = Text(Day(date), '00');
var fileNumber = year + month + day;
return fileNumber;
What I can't seem to figure out is how to validate if that number already exisits in another attribute, and if it does, how to return filenumber + A or +B if A exisits as well. Please let me know if this is possible to do or if I will have to find another way to do it.
Thanks!