Hi, I'm looking to get the latest deal for a contact, if I use crmAssociations to get the deal ids for a contact can I assume that the largest deal id is the latest? Or is there another way I should go about this? Thanks!
You could gather all of the associated Deal IDs into an array, batch read those deals, then sort through them looking for the most recently updated deal. You can specify different properties to return in order to fit your definition of "latest."
You could gather all of the associated Deal IDs into an array, batch read those deals, then sort through them looking for the most recently updated deal. You can specify different properties to return in order to fit your definition of "latest."