Activity Forums Salesforce® Discussions Can we take key and value both as ID datatype in Map in Salesforce?

  • Can we take key and value both as ID datatype in Map in Salesforce?

    Posted by Aditya on January 24, 2020 at 4:15 pm

    Can we take key and value both as ID datatype in Map in Salesforce?

    Pooja replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Pooja

    Member
    January 24, 2020 at 4:26 pm

    Yes, we can take key and value both as ID datatype in Map in Salesforce because Maps can hold sObjects both in their keys and values.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos