Blog

Creating Multiple Record Types

Creating brand new custom objects in Salesforce, while necessary, can be time consuming and tedious. Often times you will need to create a different page layout or new selections for a particular picklist field but the only way you know how to do this is create an entirely different custom object and customize it as needed. This is where creating multiple record types for one object come in to play, allowing you to customize various aspects of an object based on profile settings.

 What are Record Types?

Record types allow administrators to configure different page layouts, business processes, and picklist values. It is important to note that record types are based on a user’s profile and not standard across the organization. Record types can be used in a variety of ways, from displaying different page layouts for one object based on a set of criteria, to displaying different picklist values based on the user creating the record in question.

NOTE: Record types do not influence record level security. Meaning, if a user does not have permission to view/edit an object (or field within that object) in their profile settings they will not have the ability to view/edit that object even if a record type is made available to their user profile.

 Adding Record Types to Profiles

Profiles can be associated with one or more record types. This can be done when creating the record type, or later when editing a specified profile. When more than one record type is available you must choose a default for each profile. The default record type should be the one which is used most often, and will therefore be the primary selection for users. Profiles associated with only one record type will never be asked to select a record type when creating a record. This will make more sense once we go through the example below. 

Setting a Default Record Type

When you have created multiple record types you can set one record type as the default for each user profile. This comes in handy if users tend to use one record type much more often than others. This can be done with the following steps:

Manage Users ->Profiles (select a profile) -> Object Settings (select the object) ->Edit ->Select from the available list of record types

Multiple Record Types Example

Your organization works with two types of clients, corporate and armed services, and therefore sees these as two separate account types. For corporate accounts you will need to capture the size in revenue of the corporation, while for armed forces accounts you will need to capture the branch of armed forces of the account. We therefore need to create two record types for the account object with two different picklist field options for each.

Understanding the Scenario

Because we are have two different account types, Corporate and Armed Forces, as well as two different fields we want to capture for each, it makes sense to create two record types and page layouts for each of these account types. We want the appropriate picklist field to be visible only when creating the appropriate account type. As we can see in the table below, visibility of each field is only necessary when creating the account type in association with that field.

Screen Shot 2015-04-07 at 8.34.13 PM

Step 1 – Create Page Layouts

  1. From the setup screen, click Customize -> Accounts -> Page Layouts
  2. Click New
  3. Select an existing page layout to clone, or start from scratch. It is much easier to clone from an existing layout and you can always delete what is not needed from the cloned layout.
  4. Select a Page Layout Name, for our corporate accounts we will call this Corporate Account Layout
  5. Click Save
  6. Quick Save the page layout as is, there are no changes needed to make on the layout at this time.
  7. Repeat steps 1-7 for our armed forces accounts. Naming the layout Armed Forces Account Layout.

Step 2 – Create Record Types

  1. From the Setup screen, click Customize -> Accounts -> Record Types
  2. Click New
  3. Select Master from the Existing Record Type drop-down list to copy all available picklist values.
  4. Create a Record Type Label named Corporate Account along with an optional Description if desired.
  5. Make sure to select the Active checkbox in order to activate the record type. If this is not selected your new record type will not be available to users.
  6. Select Enable for Profile for all profiles since we are not putting restrictions to this page layout based on user profie. The record type must first be enabled for the profile in order to have the option of making it the default selection.
  7. Click Next
  8. Pick the Corporate Account Layout option and apply to all profiles.
  9. Save
  10. Repeat steps 1-9, creating a page layout named Armed Forces Account and assigning it to the Armed Forces Account Layout

 

 Step 3 – Create Picklist Fields and set Page Layout Visibility

  1. Create picklist fields on the account object for Revenue of Corporation with picklist values as: <$100M, $100M – $500M, $500M – $1B, >$1B
  2. This field can be visible to all profiles since we do not have any restrictions on its user visibility.
  3. Only enable the field for the Corporate Account Layout page.
  4. Create a picklist field on the account object for Branch of Armed Forces with picklist values as: Army, Navy, Marines, Air Force, Coast Guard
  5. This field can be visible to all profiles since we do not have any restrictions on its user visibility.
  6. Only enable the field for the Armed Forces Account Layout page.

   

 

NOTE: Make sure the Revenue of Corporation field is not on the Armed Forces Account Layout as it is not necessary for these types of accounts. Additionally, make sure that the Branch of Armed Forces field is not on the Corporate Account Layout for the same reason. Refer to the previous chart in the Understanding the Scenario section for more details.

 Step 4 – Test by Creating a New Account

In order to see if we completed all of the steps correctly we must confirm that there are now multiple record types, and the visible fields on each record type correlate to the appropriate page layout.

  • Go to Account -> New

The following screen should appear

 

  • Select the Corporate Account option from the drop-down menu
  • Confirm that the Revenue of Corporation picklist field is visible on the page layout, and the Branch of Armed Forces field is not visible.

  • Repeat steps 1-4 selecting the Armed Forces Account record type and confirming the Branch of Armed Forces field is visible on the page layout.

 

 

You have now created two separate records types and page layouts that display the correct fields. Now, whenever you attempt to create a new account you will decide between a Corporate and Armed Forces record type and in turn be routed to the correct page layout.

 User Default Record Types 

If a user is always using the default record type, it is possible to always use this record type when creating a new record and not be prompted using the  ‘Set Default Record Types‘ option under My Settings.

What Certification are you studying for now?

Focus on Force currently provides practice exams and study guides for sixteen certifications

Salesforce Multiple Record Types Example

Creating Multiple Record Types Creating brand new custom objects in Salesforce, while necessary, can be time consuming and tedious. Often times you will need to create a different page layout or new selections for a particular picklist field but the only way you know how to do this is create an entirely different custom object and customize it as needed. This is where creating multiple record types for one object… Read More

Salesforce Multiple Record Types Example

Creating a Dynamic Dashboard in Salesforce

Dashboards are a great way to represent data visually within an organization. They can show how you have performed in the past and what’s happening at the moment – two keys to any business that wants to be successful.Normally, dashboards in Salesforce are run based on one user for the entire organization. Meaning the dashboard looks the same for all users within the organization. This is great if you are… Read More

Creating a Dynamic Dashboard in Salesforce

Salesforce Web to Lead

The Salesforce Web to Lead functionality offers an easy way to get leads from your website into Salesforce. Although there are some constraints with its use, it will satisfy the requirements for many organizations. Salesforce also offers a way to associate the leads from the webpage to a particular campaign. You can also have multiple web-to-lead forms from multiple websites or landing pages, all inserting leads in Salesforce and either… Read More

Salesforce Web to Lead

Reporting on Accounts that haven’t ordered a product in the last 12 months

It is quite common for organizations to bring order history into Salesforce to add to other interactions captured in Salesforce to have a complete picture of a customer. Once the information has been brought into Salesforce, it is easy to report on account order history, but what if you would like to report on accounts that don’t have order history for a particular product in the last 12 months. This… Read More

Reporting on Accounts that haven’t ordered a product in the last 12 months

Reporting by Month and Year with Salesforce Reports

You may have the requirement to report by month and year. If you have tried that, you will find that the standard reporting features may not provide you with what you are looking for. Lets say that you would like to report on the number of closed opportunities over the last 3 years. You would like to have months reported along the top in columns and the years down the… Read More

Reporting by Month and Year with Salesforce Reports

What can you do with SalesforceA

SalesforceA was released in Spring 14 to allow Salesforce admins the flexibility to do routine user management on their mobile device. If you have ever had to immediately inactivate a user, or had to response ASAP to a user that has locked themselves out and needs a password reset, then this app will come in handy. Here is our review of what you can do with this app, what’s good… Read More

What can you do with SalesforceA

Salesforce Sandboxes

What is a Salesforce Sandbox? Although it is very easy and possible to make changes directly to configuration in Salesforce, it is a better idea to test out those changes in another environment which won’t affect your users. That’s why Salesforce includes a ‘sandbox’ for every production organisation where changes can be made and tested before moving them to production. This type of environment is called a sandbox. The number… Read More

Salesforce Sandboxes

Salesforce Quotes

Once you have added your products into an opportunity, Salesforce has inbuilt functionality to allow you to generate and email quotes to customers. Lets take a look at how this works, and what you need to be aware of when using Salesforce Quotes. First, to use Quotes they need to be enabled. By default the are not enabled and you won’t see them in your Opportunity screen. Go to: Setup… Read More

Salesforce Quotes

Salesforce Jobs

Salesforce Administrator After Salesforce is implemented, a Salesforce administrator is required to maintain and extend the system functionality as business needs change, evolve or expand into new areas of the business. The role is a varied one but will typically include some or all of the following: • Provide User Support and be responsible for user administration • Investigate and resolve problems • Investigate and analyze requests for change and… Read More

Salesforce Jobs

Salesforce Basic Terminology

If you are new to the Salesforce.com application, you may wonder ‘What exactly is Salesforce.com’ and before long you will come across some terminology that is used to describe different parts of the application, functionality and navigation.Here is a quick guide to some of the basic terminology you need to understand Salesforce.com and navigate the application.Basic SalesforceSalesforce is the name of the company and name of the application. It started… Read More

Salesforce Basic Terminology

Subtract Two Date Fields to Calculate Duration of Time

If you are faced with the challenge of calculating the duration of time between two dates in Salesforce, this post is for you. Lets say what you want is to take two dates and times, for example 20/01/2014 09:00am and 21/01/2014 10:20am and calculate the duration of time between them in hours and minutes, and display the result like this: 24:20 or 24h:20m.If we just create a formula field and… Read More

Subtract Two Date Fields to Calculate Duration of Time

Salesforce Roll-up Summary Using the Value of a Formula Field

Roll-up summary fields are a very useful Salesforce feature, but you may come across a situation where you need to rollup the value of a formula field. Here is an example: You have added a custom field to the Product object to record the cost of a product. You want the total cost of all products added displayed on an opportunity. In the screenshot below you can see Widget A… Read More

Salesforce Roll-up Summary Using the Value of a Formula Field

Saving Emails to Salesforce

If you use Gmail or another web based email service, Salesforce has a feature that will allow you to save your emails related to leads, contacts and open opportunities. It is the ‘Email to Salesforce’ features and when enabled, allows users to bcc a unique bcc email address to automatically create activity records against records in Salesforce. To use this feature, firstly the Salesforce Administrator has to enabled it, and… Read More

Saving Emails to Salesforce

Comparing Salesforce Editions

There are a number of editions of Salesforce offering varying features and capabilities. If you are new to Salesforce and deciding which edition is right for you, then this guide will be helpful. If you already have Salesforce it will be useful to know what features you can take advantage of and any limitations you will have. It is of course possible to upgrade to a higher edition. If you… Read More

Comparing Salesforce Editions