Activity › Forums › Salesforce® Discussions › What is the use of values() in map in Salesforce? Salesforce® Discussions What is the use of values() in map in Salesforce? Posted by Pooja on February 21, 2020 at 2:36 PM What is the use of values() in map in Salesforce? Aditya replied 6 years, 3 months ago 4 Members · 3 Replies 3 Replies Deepak Member February 21, 2020 at 2:54 PM Hi Pooja, values() – This method returns a list which contains all the values in the map.The values are returned in an arbitrary order. [adinserter block='9'] Kirandeep Member February 21, 2020 at 3:05 PM Values() is a predefined method in map class which return list which contains all the values in the map. Aditya Member February 21, 2020 at 4:29 PM Values in Map are basically return the values of their corresponding keys in Collection of Salesforce Apex. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me