API suffixes in Salesforce
Here are some common suffixes and their uses:
__c
:- Usage: Indicates a custom object or custom field. For example,
Invoice__c
could be a custom object representing invoices, andAmount__c
could be a custom field representing an invoice amount.
- Usage: Indicates a custom object or custom field. For example,
__r
:- Usage: Used in relationship queries to refer to the relationship name from a child to a parent object. It’s used instead of
__c
when querying related records. For example, if you have a custom objectInvoice__c
with a lookup toAccount
, you would access the Account name asAccount__r.Name
.
- Usage: Used in relationship queries to refer to the relationship name from a child to a parent object. It’s used instead of
__e
:- Usage: Denotes a custom event in the Salesforce platform. Custom events are used in the Event-Driven Architecture for platform events.
_longitude__s
and_latitude__s
:- Usage: Special suffixes used for geolocation fields to store longitude and latitude values, respectively. If you have a Geolocation custom field named
Location__c
, Salesforce will automatically createLocation__Longitude__s
andLocation__Latitude__s
fields.
- Usage: Special suffixes used for geolocation fields to store longitude and latitude values, respectively. If you have a Geolocation custom field named
__pc
and__pr
:- Usage: Used in Salesforce B2B Commerce to denote custom fields on Person Accounts (
__pc
for custom fields and__pr
for custom relationship fields). For example,Contact.FirstName
in B2B Commerce would beFirstName__pc
.
- Usage: Used in Salesforce B2B Commerce to denote custom fields on Person Accounts (
__mdt
:- Usage: Indicates a custom metadata type. Custom metadata types are similar to custom objects and are used for defining application configurations that can be migrated between Salesforce environments.
__b
:- Usage: Represents a BigObject field. BigObjects are used to store and manage massive amounts of data on the Salesforce platform.
__x
:- Usage: Denotes an external object. External objects are part of Salesforce Connect, which links outside data sources into your Salesforce environment as if they were part of your org.
These suffixes are essential for understanding the schema and architecture of Salesforce, as they provide immediate context about the nature of the objects or fields you are dealing with.
Comments are closed.