Activity Forums Salesforce® Discussions How to find object id prefix either standard or custom object in Salesforce?

  • How to find object id prefix either standard or custom object in Salesforce?

    Posted by Anjali on November 2, 2020 at 2:33 pm

    How to find object id prefix either standard or custom object in Salesforce?

    Deepak replied 4 years ago 2 Members · 1 Reply
  • 1 Reply
  • Deepak

    Member
    November 2, 2020 at 5:10 pm

    In Anonymous window,type this
    System.debug(‘Prefix–> ‘ + CustomObject__c.sObjecttype.getDescribe().getKeyPrefix());

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos