Activity Forums Salesforce® Discussions How to sort contact according to last modification of contact ???

  • Augustya Karavat

    Member
    July 11, 2017 at 9:15 am

    @subham Can you please elaborate the scenario.

    As the problem statement, use OrderBy LastModifiedDate ASC in the Query while displaying the List of Contacts.

  • shariq

    Member
    July 11, 2017 at 1:30 pm

    Hi Shubham,

    By Assuming your scenario, you need to use Order By Clause on field LastModifiedDate.

    Example : [SELECT Id, Name FROM Contact Order By LastModifiedDate DESC]

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos