Expression to calculate unique IDs in Arcade

120
0
01-21-2021 11:36 AM
Labels (2)
jstark_mercernj
New Contributor II

Hi,

I have created a feature layer in ArcGIS online to manage invasive plant species populations in our Parks, that I plan on using for detection/treatment tracking purposes and for field work using Field Maps. I was wondering if there is an expression to designate intentional unique identifiers to each population (feature). I have a park code for each, and a species code for each that I calculated in the attribute table using Arcade for all features.  I would like to combine these fields and also populate a number in sequence number by date. 

For example, at our Dam Site Park (DS) we have multiple Ailanthus altissima (AIAL) populations. I would like for to create a field expression that will assign unique identifiers: DS_AIAL_1, DS_AIAL_2, DS_AIAL_3, etc, with numbers in sequence ordered by Date Detected (see fields below).

 

jstark_mercernj_0-1611257466175.png

I am new to using Arcade and would appreciate any insight on this. Thank you!

 

0 Kudos
0 Replies