Contents
How do I access compound fields in Salesforce?
Compound fields are accessible only through the SOAP and REST APIs. The compound versions of fields aren’t accessible anywhere in the Salesforce user interface. Although compound fields can be queried with the Location and Address Apex classes, they’re editable only as components of the actual field.
What is compound fields in Salesforce?
Compound fields group together multiple elements of primitive data types, such as numbers or strings, to represent complex data types, such as a location or an address. Compound fields are an abstraction that can simplify application code that handles the values, leading to more concise, understandable code.
Is Person Account field in Salesforce?
Person Accounts are not enabled by default in Salesforce, but can be enabled by Salesforce Support if you make a request (steps listed at the end of this article.) Note: Person Accounts are also known as B2C (Business to Consumer) or B2I (Business to Individual) Accounts.
How does a compound field work in Salesforce?
The values contained within the compound field and the values in individual fields both map to the same underlying data stored in Salesforce; they always have identical values. Code that references individual component fields is unaffected by the new compound fields. Compound fields are read-only.
How are compound fields used in SOAP API?
The Address type extends the Location type, the data type used for compound geolocation fields. Using API 30.0 and later, standard addresses are available in the SOAP and REST APIs as a compound field of type Address, a structured data type that combines the following fields. Accuracy level of the geocode for the address.
How to reference compound fields in soql select?
SOQL SELECT clauses can reference addresses directly, instead of all of the individual component fields. Compound address field values are returned as a structured data type, Address. Code that works with compound address fields needs to reference the individual components of the returned value.
How are address data types used in Salesforce?
Standard addresses—addresses built into standard objects in Salesforce—are accessible in the SOAP and REST APIs as an Address, a structured compound data type, as well as individual address elements. The Address type extends the Location type, the data type used for compound geolocation fields.