Activity Forums Salesforce® Discussions How to convert List to a map?

  • Shweta

    Member
    September 11, 2020 at 2:35 pm

    Assume you have, List<Account> accList and you want to convert this list into a map.
    Create a map and pass this list.
    Example: Map<Id, Account> accMap = new Map<Id, Account>(accList);

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos