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

  • 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