Select to view content in your preferred language

Generate Unique Sequence Number

175
2
08-09-2024 05:39 AM
vijaybadugu
Frequent Contributor

I would like to write an Arcade expression to generate a unique next sequence number in a feature class. which needs to compare two feature classes and generate unique number which is not included in either of feature classes.

0 Kudos
2 Replies
MikeMillerGIS
Esri Frequent Contributor

You can use Max on a featureset, this would get you the highest number in each class, and then increment by one

https://developers.arcgis.com/arcade/function-reference/featureset_functions/#max

 

0 Kudos
vijaybadugu
Frequent Contributor

Is there way to list all field values, display in console and pass them to array ?

0 Kudos