Address Fields in Salesforce - How to Create and Manage

Address Fields in Salesforce

Introduction

In Salesforce, the standard address field is a compound field that allows you to store and manage address information for records. It is called the "Address" field type and is commonly used in various standard and custom objects.

The Address field in Salesforce is a combination of multiple sub-fields that together represent a complete address. The sub-fields included in the standard Address field are:

  1. Street: This field is used to capture the street name and number of the address.
  2. City: It holds the name of the city or locality associated with the address.
  3. State/Province: This field is used to capture the name or code of the state or province where the address is located.
  4. ZIP/Postal Code: It represents the postal code or ZIP code of the address.
  5. Country: This field holds the name of the country associated with the address.

When you use the Address field in Salesforce, you can enter or retrieve data for each of these sub-fields individually, or you can work with the complete address as a single unit.

Address field is a standard field type in Salesforce, and it is available by default in many standard objects. Additionally, you can also create custom address fields in your custom objects if needed, using the same structure and sub-fields as the standard Address field.

Step-by-Step Guide to Configure & Enable Standard Address Fields

In this tutorial, we will illustrate the step-by-step process of configuring standard Address Fields in Salesforce.

Go to Setup

setupMenu 2

Go to the setup gear icon, then click on setup

Search State and Country/Territory

State and County

Search State and Country/Territory on the QuickFind box
You must complete steps 1-3 before enabling the state and country/territory picklists.
Select 1st step as Configure State, Country and Territory from Enable State and Country/Territory Picklists.

Configure Countries/Territories

picklistOfCountry

You can add new countries/territories or configure existing ones.
You can choose a default (if you like) and tick the relevant Countries/Territories to make them Active and Visible
To add new, click on New countries/territories and click on Edit to configure existing countries/territories.
Here, we are clicking Edit to configure countries/territories.

Configure States

State configuration

You can add new States or configure existing ones similar to countries/territories.
After configure, Click on save

Scan for State and Countries/Territories Data

Scan for affected data

Select 2nd step as Scan for State and Countries/Territories Data from Enable State and Country/Territory Picklists.
Start process by click on Scan for State and Countries/Territories Data.
When the scan is completed, you receive two emails. One contains address data that must be converted to picklist values. The other contains references to that data in reports, list views, validation rules, and other customizations.

Convert Identified Data

Map states country

Select 3rd step as Convert Identified Data from Enable State and Country/Territory Picklists.
Map existing state and country/territory data in your records' address fields to standardized picklist values.
Map country/territory values first, and then map state values.
After map country & states fields, Click on Finish and Enable Picklists.

Enabled Standard Address Fields

enable State and Country Territory Picklists

After completing steps, State and country/territory picklists are enabled for your organization.

Country

country piccklist 1

Let's create a new lead to test the address fields. Upon doing so, we can observe that the country fields are displayed as a Picklist, providing a pre-defined list of options to choose from.

States/Province

State picklist

States/Province fields are displayed as a Picklist.

Conclusion

It's all about setting things up right, keeping data clean, and making sure users know the drill. We've covered how to do this from start to finish, focusing on making everything work well together.

Kritik Garg

Kritik Garg

Freelance Salesforce Developer & Consultant

Kritik Garg is a highly skilled Salesforce developer and consultant with a proven track record of successfully completing projects of various sizes and complexities, from short-term assignments to long-term partnerships. He is the founder and CEO of Arrify, and is available to work on projects in the United States, United Kingdom, and Australia.
If you are looking for Salesforce Assistant, contact Kritik now.
Kritik has extensive experience working with various industries, including banking, healthcare, education, telecommunications, and manufacturing. He is an expert in Salesforce Sales, Service, and Marketing cloud, and is skilled in programming and developing various Salesforce features, such as APEX Programming, Lightning framework, VisualForce pages, Triggers, Workflows, Page Layouts, Roles, Profiles, Reports & Dashboards.

Looking for specialized Salesforce administrators and developers?

YES
We provide Services in Columbus
Excellent communication in front to clear everything and delivered product was perfect.
- Jane Smith, Product Owner