Skip to main content

Location Filter

Location searching can be performed in one of two ways: by country or by radial search.

Country filtering

Filtering by country returns Contact records whose MailingCountryCode field matches the selected country. The available country options are based on the State and Country/Territory Picklists options enabled within the org, with the org default State/Territory displayed at the top of the picklist.

warning

State and Country/Territory Picklists must not be disabled for location filtering to work.

note

In Basic Search, where multiple countries are required for filtering, use additional field filters. In Advanced Search, populate multiple location filters and apply OR custom logic.

Will filter the results by having their MailingLatitude and MailingLongitude field fall within the selected radius of the provided address. When performing a radial search, all inputs are required.

Units used for the distance field can be changed between miles and kilometers using the options above the distance input. Set the default units at the user, profile or org level by configuring the user setting Default_Search_Location_Radius_Unit to either mi or km. If unspecified, the default units are mi.

Geocodes for locations are provided by Salesforce's and Seven20's location service, with distances calculated using the Haversine formula via SOQL.

warning

Ensure contact records have as much detail filled out about their address as possible as Town/City names are not necessarily unique. Wherever possible, provide a Postal/Zip code and a country code instead.

note

Ensure Geocoding has been turned on before performing local radius searches.