BUILDING CUSTOM OBJECTS, TABS, AND
RELATED LISTS
Summary Basic Concepts
A short overview of building You can create custom objects, custom tabs, and custom related lists in Salesforce. Before you begin,
custom objects, tabs, and review these concepts and terms:
related lists.
Standard Objects
Tables that contain the data in any standard tab such as accounts, contacts, or opportunities.
Custom Objects
Tables you create to store your data. You can create a custom object to store data specific to your
organization. You can also create reports and dashboards based on the data in your custom object.
Relationships
Standard and custom objects have relationships that define how records in one object relate to records
in another object. For example, accounts can have a one-to-many relationship with contacts. These
relationships commonly appear in the application as related lists. You can create new relationships
that enable you to add custom related lists to your page layouts.
Custom Tabs
You can create three different kinds of custom tabs: custom object tabs, Web tabs, and Visualforce
page tabs. Custom object tabs allow you to find, add, change, and delete the data in your custom
objects. Web tabs display any Web application in a tab within a Salesforce application. Visualforce
page tabs display data from a Visualforce page.
Designing Your Approach
As a first step, we recommend designing your overall approach. By gathering requirements and making
key design decisions up front, you will be able to implement the solution more efficiently. Answer the
following questions:
Data
• What fields and data types do you need?
• How would you logically group these fields into one or more custom objects?
Relationships
• Is the custom object data related to standard data, or is it independent? If the data is related, it
should appear as a related list on a standard tab. If the data is independent, it should appear on
a custom tab. Using a combination of tabs and related lists is also an option.
• If it is related data, how tightly linked is the data? If a record in one object is deleted, should the
related records in the other objects be deleted also? In a Master-Detail relationship, related data
records are included in the deletion, but in a Lookup relationship they are not.
User Interface
• Do you want to create new custom tabs for users to maintain the data? Is it sufficient for users to
access the data from related lists on existing tabs?
• Do you want users to access a Web application from a tab?
Last updated: March 27, 2015
Building Custom Objects, Tabs, and Related Lists Implementation Steps
• What fields should appear in the related lists?
• What fields should appear in the page layouts?
• Do you want users to track tasks and events for the custom object?
• Do you want to mimic the Salesforce UI?
Implementation Steps
Below is an overview of the steps to follow when building custom objects, tabs, and related lists.
To create a custom tab so users can track data that is specific to your business:
To create a custom related list so that you can associate your data with standard tabs:
Getting Started
Use the following links to get started:
• For custom objects, from Setup, click Create > Objects.
• For custom tabs for a custom object, from Setup, click Create > Tabs.
Tips and Hints
Creating custom objects:
• Establish object relationships first before adding all custom fields, page layouts, and related lists.
• Create up to 50 in Contact Manager, Group or Professional Edition, 200 in Enterprise Edition, and 2000
in Unlimited and Performance Edition.
• Click Edit List Layout to choose columns for key views and lookups.
• The standard Name field is required on custom object related lists and page layouts.
• Provide meaningful names for your custom objects. The plural label of the custom object will also be
used as the label of the custom tab based on that object.
• Build custom reports and dashboards using the data in your custom objects.
Defining relationships:
• Review the entity relationship diagram available in the SOAP API Developer’s Guide.
• Each custom object can have up to two master-detail relationships and up to 25 total relationships.
2
Building Custom Objects, Tabs, and Related Lists Troubleshooting
• The Related To entry can not be changed once you save the relationship.
• Create a master-detail relationship before a custom object contains data.
Creating custom tabs:
• You can create up to three custom object tabs or web tabs in Contact Manager, five in Group, 10 in
Professional Edition, 25 in Enterprise Edition, 100 in Developer Edition, and as many as you want in
Unlimited and Performance Edition.
• The title of the custom tab is the same as the plural label of the custom object.
• We recommend selecting the Append tab to users’ existing personal
customizations checkbox.
• Set permissions on tabs and page layouts so that users cannot see your changes until they are finalized.
• By using Visualforce, your tab can look and feel like other Salesforce pages.
Troubleshooting
• How do I customize the tab settings of my users?
– From Setup, click Manage Users > Profiles, select a profile, then edit the tab settings.
• How do I customize the tabs that appear in my apps?
– At the top of any Salesforce page, click the down arrow next to your name. From the menu under
your name, select Setup or My Settings—whichever one appears.
– From the left pane, select one of the following:
• If you clicked Setup, select My Personal Information > Change My Display, and click
Customize My Tabs.
• If you clicked My Settings, select Display & Layout > Customize My Tabs.
• How do I make my custom related list appear on a standard tab?
– From Setup, click Customize and select the appropriate tab and page layout link. Check to see
that the related list has been added for the appropriate people.
• How can I change the columns in my custom related list?
– From Setup, click Extend > Objects and select the custom object. Click Edit in the Page Layouts
related list, select a related list to edit, and then click Edit Properties.
• Why can’t I create a master-detail relationship?
– Determine whether the custom object already contains data. If you delete the data in your custom
object, you can define the relationship. If you cannot delete the data in your custom object, create
a lookup relationship first and then populate the lookup reference field in each record with a valid
value. Next, click Edit by the relationship and convert it to a master-detail relationship.