Use the same account next time to pick up where you left off.
|Production Salesforce account||Developer Edition or Admin Playground|
|Do I need to be a Salesforce customer?||Yes||No (It's free!)|
|Can I use it to create my Trailhead profile and store my badges?||Yes||Yes|
|Can I use it to complete Trailhead challenges?||No (except for multiple choices quizzes)||Yes|
|Can I keep my Trailhead badges if I leave my company?||No||Yes (use a personal email address)|
Custom objects and fields let you tailor which data is stored to fit your organization’s needs. Though the Force.com database provides several standard objects, you can easily customize how you track and report on your data.
Custom objects give you the flexibility to store any type of enterprise data that’s relevant to your app, by creating new objects. For example, if you’re building a recruiting app, you can create custom objects called Position and Candidate to track information on job openings and candidates, respectively.
Categorize and track your data even more granularly by using custom fields. Like standard objects, custom objects have fields that define the data for those object records. By default custom objects include several standard fields, including Name, Created By, Last Modified, and Owner.
You can add custom fields to standard or custom objects based on the type of data you want to store.
Let’s say you want your recruiting app to sort candidates by how well they’d fit a position. Create a field named Prospect Rating on the Candidate object and use picklist values to indicate how closely a candidate fits a job description. We’ll do this in the next section.
To associate your custom object with other objects, you can create custom relationship fields. For more about object relationships, check out the Creating Object Relationships unit.
After you define a custom object, you can also:
Let’s use our earlier example of a recruiting app to practice creating custom objects. We want a new object named Candidate to keep track of job applicants for each position. (We won’t use an existing object like Contact, because our existing objects are already being used for specific purposes.)
Now that we have a Candidate object, we can customize it to categorize candidates by how well they fit particular positions. For example, we want reports to show all the “Hot” candidates at the top, so recruiters can contact those applicants first.
So we’ll create a custom field named Prospect Rating, make it a picklist field, and give it several values to classify candidates. We conveniently create the custom field directly on the Candidate object, so it’s already associated only with that object.
Let’s locate the Candidate object and create the new field.
We highly recommend that you create help pages for your custom objects. It's easy to provide useful information about your object by using a simple Visualforce page. Your users will thank you!
Let’s create a simple Visualforce help page to reference from your Candidate object.
<h1>Help for the Candidate Object</h1> <p>The Candidate object is for identifying and tracking individual candidates for job positions.</p> <p>Sort candidates by Name, Location, Last Modified, and Prospect Rating.</p>
After your users start tracking Candidates, they decide to sort candidates a little more granularly. The hiring managers request an additional picklist value, to easily see who’s a top candidate for a job.
To add a value to the picklist, you modify the Prospect Rating field.
Custom objects and fields shape your data! Here are a few tips for creating custom objects that enhance instead of clutter your organization’s records and reports.
Page layouts define which fields users can view and edit when entering data for a custom object record.
When you create a custom object it comes with a default page layout. Tailor which data users enter for that object’s records by building your own page layout with related lists and custom links. For details, see Building Page Layouts for Custom Objects.
When you create a custom field on an object, the New Custom Field wizard guides you through defining the type of field you choose. For example for a formula field you’re prompted to select the type of calculation and to define the fields, operators, and functions in your formula. Or for a percent field, specify the number of decimal places.