
Salesforce Custom Objects and Behavior - All You Need to Know
At the point when you make or empower highlights for a custom article, Salesforce makes elements to help your custom item. For instance, when you empower sharing principles for a custom item, Salesforce makes a MyObjectName__Share object.
To check the total rundown of fields for an article or substance, you can utilize a depiction call from the API, or assess with a fitting device, for instance, investigating the WSDL or utilizing a pattern watcher.
- Custom Metadata Type__mdt - Speaks to a custom metadata record. This article is accessible in API adaptation 34.0 and later.
- Custom Object__c - Speaks to a custom item.
- Custom Object__Feed - Speaks to the feed, explicitly posts and feed-followed changes, on a custom item.
In the UI, you can expand your organization's information by characterizing custom items. Custom articles are custom information base tables that permit you to store data remarkable to your association. For custom articles, the custom banner—a Boolean field in the depicted outcomes—is valid.
Customer applications with adequate consents can summon API approaches to existing custom items. You can make custom articles with the UI, or by utilizing the metadata WSDL with a customer application or utilizing the Salesforce Extensions for Visual Studio Code. For more data about utilizing the metadata WSDL to make custom articles, see the Lightning Platform Metadata API Developer's Guide. For more data about Visual Studio Code, see Salesforce Extensions for Visual Studio Code.
Don't forget to check out: External Objects in Salesforce - The Implementation Guide
Utilize the accompanying subjects to see how the API associates with custom articles and fields:
- Naming Conventions for Custom Objects
- Relationships Among Custom Objects
- Audit Fields for Custom Objects
- Sharing and Custom Objects
- Tags and Custom Objects
- Standard Fields for Custom Objects
- Required Fields in Custom Objects
- Managed Packages and API Names
Naming Conventions for Custom Objects
Your Salesforce chairman characterizes a related name field for every custom item during the arrangement. Custom items must include special names inside your association.
In the API, the names of custom items incorporate a postfix of two underscores followed by a lowercase "c" . For instance, a custom article marked "Issue" in the Salesforce UI is Issue__c in that association's WSDL.
Connections change the naming show. See Relationships Among Custom Objects for more data.
For a custom article record to show up in the Salesforce UI, its name field must be populated. In the event that you utilize the API to make a custom article record that doesn't have a name, the record's ID is utilized as its name.
Connections Among Custom Objects
Custom items carry on and identify with different articles simply like standard items do, as portrayed in Relationships Among Objects. For instance, falling erases are upheld in custom items in a Master-Detail relationship.
Custom articles can likewise have many-to-numerous associations with other custom items or standard items. A many-to-numerous relationship permits each record of one item to be connected to different records from another article and the other way around. For more data, see Relationships Among Objects.
Custom articles require uncommon treatment with the goal that they can partake in Relationship Queries. For the relationship field name of a custom item, __r is affixed to the name to make the ID. Likewise, __c is affixed to the name to make the parent object pointer. For instance, if the relationship field name is MyRel, the name of the ID becomes MyRelId__r, the parent object pointer becomes MyRel__c, and the relationship name is MyRel__r. For more data, see Understanding Relationship Names, Custom Objects, and Custom Fields in the Salesforce SOQL and SOSL Reference Guide.
This table sums up whether a standard item can be:
- The ace in an ace detail relationship with a custom article. Ace detail connections include falling erases and sharing standards that the parent controls.
- The query in a query relationship on a custom item. As such, regardless of whether a custom article can have a query to the standard item.
- Extended with custom fields.
Check out another amazing blog by Mohit here: Enable Skype for Salesforce | The Developer Guide
Standard Object | Master-Detail | Lookup | Custom Fields |
Account | True | True | True |
Campaign | True | True | True |
Contact | True | True | True |
Contract | True | True | True |
Event | False | False | True |
Lead | False | False | True |
Opportunity | True | True | True |
Product2 | False | True | True |
Solution | True | True | True |
Task | False | False | True |
User | False | True | True |
Responses