API suffixes in Salesforce

API suffixes in Salesforce

On March 28, 2024, Posted by , In Salesforce, With Comments Off on API suffixes in Salesforce

Here are some common suffixes and their uses:

  1. __c :
    • Usage: Indicates a custom object or custom field. For example, Invoice__c could be a custom object representing invoices, and Amount__c could be a custom field representing an invoice amount.
  2. __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 object Invoice__c with a lookup to Account , you would access the Account name as Account__r.Name .
  3. __e :
    • Usage: Denotes a custom event in the Salesforce platform. Custom events are used in the Event-Driven Architecture for platform events.
  4. _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 create Location__Longitude__s and Location__Latitude__s fields.
  5. __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 be FirstName__pc .
  6. __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.
  7. __b :
    • Usage: Represents a BigObject field. BigObjects are used to store and manage massive amounts of data on the Salesforce platform.
  8. __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.