You need to sign in to do that
Don't have an account?
Vinicius Vandre 5
Help retrieving list of most recent records for each value in a set.
Hello! I'm having trouble figuring this one out. So any help will be highly appreciated!
I have a custom picklist field in Order.
I wish to retrieve all the most recent records for each value in the picklist.
Let's say that there are 10 Order records and that the picklist has values A,B,C. What I would like to retrieve (in a single query to avoid SOQL limits) is a list of the 3 most recent records that have each value.
How would you achieve this?
Dosbol T
Hi there, please try this one: