Activity Forums Salesforce® Discussions How to access filed token in salesforce?

  • Nikita

    Member
    October 4, 2019 at 8:22 am

    Hi Laveena,

    To access the token for a field, use one of the following methods:

    Access the static member variable name of an sObject static type, for example, Account.Name.

    • Call the getSObjectField method on a field describe result.
    • The field token uses the data type Schema.SObjectField.

    In the following example, the field token is returned for the Account object's Description field:

    Schema.SObjectField fieldToken = Account.Description;

     

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos