I am making a search on a custom record. I want to...
# suitescript
a
I am making a search on a custom record. I want to group the results by a specific field, but only get the most recently created record for each grouping. (How) Can this be done?
a
this is the base of SQL grouping. So how can you "select" a field of record with a single query when basing on the grouping criteria of another colum? Impossible...
You need a nested query.
P.S: I'm assuming you are trying to get this using a Saved Search only
Using script it's really easy
a
@Andrea Rivetti @erictgrubaugh's cookbook answer fit my needs perfectly
👍 1