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 3 years, 6 months 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

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a