How do I get an API name?

How do I get an API name?

Standard objects

  1. Go to Setup.
  2. Go to App Setup | click Customize.
  3. Locate the object the click Fields.
  4. Look for “API Name” column value in “Custom Fields & Relationships” section.

How do I find the field API name in Salesforce Apex?

get( a_Field_Name ). getDescribe(); // Label of the field System. debug(‘-=-=Label:’ +a_Field_Description. getLabel()); // API Name of the field System.

What is EntityDefinition in Salesforce?

Provides row-based access to metadata about standard and custom objects. This object is available in API version 32.0 and later. You can use Tooling API to query for EntityDefinition fields in guest user mode in API version 44.0 and earlier. …

Is the entitydefinition field still available in tooling API?

EntityDefinition is still exposed in Tooling API to User Profiles with the ViewSetup permission. Represents the Apex triggers associated with this object. This field is available in Tooling API version 34.0 and later.

When to use entitydefinition in the SOAP API?

Provides row-based access to metadata about standard and custom objects. This object is available in API version 32.0 and later. EntityDefinition fields are exposed in SOAP API version 45.0 and later. You can use Tooling API to query for EntityDefinition fields in guest user mode in API version 44.0 and earlier.

When to query the name of an entity?

Because this field represents a relationship, use only in subqueries. The name of the entity. If a field, the name must specify the parent object, for example Account.FirstName. Query this field only if the query result contains no more than one record. Otherwise, an error is returned.

Where can I find the description of an entity?

The description of the entity. A meaningful description makes it easier to distinguish between custom objects when they are viewed in a list. This field is available in Tooling API version 37.0 and later. URL to the read-only detail page for this object.