Activity Forums Salesforce® Discussions What is the use of getKeyPrefix() function in Salesforce ?

  • Anuj

    Member
    May 8, 2020 at 2:48 pm

    It is a predefined function of DescribeSObjectResult Class which Returns the three-character prefix code for the object. Record IDs are prefixed with three-character codes that specify the type of the object (for example, accounts have a prefix of 001 and opportunities have a prefix of 006).

  • Pooja

    Member
    May 11, 2020 at 5:50 am

    It is a predefined function of DescribeSObjectResult Class which Returns the three-character prefix code for the object.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos