Sample for Aggregate function MAX in QueryRecordType

Certified Lead Developer

Hi All,

We have a simple requirement: a Record Type with ID (Primary Key), AccountID, and DataSeqNumber. I need to retrieve the MAX(DataSeqNumber) for a specific AccountID. The record type is AccountInfo. Could you share a sample code using a!queryRecordType with the Aggregate function "MAX"?

-Thanks in Advance.

  Discussion posts and replies are publicly visible