Activity Forums Salesforce® Discussions How to get field API name for an object without query in Salesforce?

  • How to get field API name for an object without query in Salesforce?

    Posted by Deepak on October 30, 2020 at 3:24 pm

    How to get field API name for an object without query in Salesforce?

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

    Member
    November 2, 2020 at 6:07 am

    Schema.SObjectType token = objIds.getSObjectType();
    Schema.DescribeSObjectResult dr = token.getDescribe();
    sObjFieldName = dr.Fields.getMap().keyset();

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos