Activity › Forums › Salesforce® Discussions › What is use of containsKey(key) method ? Salesforce® Discussions What is use of containsKey(key) method ? Posted by Marziya on May 21, 2020 at 1:57 PM What is use of containsKey(key) method ? Kirandeep replied 6 years ago 2 Members · 1 Reply 1 Reply Kirandeep Member May 21, 2020 at 2:19 PM containsKey(key) is a predefined method of map class that Returns true if the map contains a mapping for the specified key. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me