<@U2B5XTP1V> try max of internalid , that will yi...
# suitescript
f
@lavi try max of internalid , that will yield a unique id for each group (the highest internal ID of each group)