Create Optimized Routes
Generate optimized routes for your field reps with just a few clicks. With constraints such as time period, number of visits, and store operating hours, ensure that reps visit the right stores at the right time.
Required Editions
| Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled. |
- From the App Launcher, find and open Salesforce Maps.
- Click Maps Advanced Visit Plans, and click New Visit Plan.
- Enter a Name and Description.
- Click Save and Next.
-
In the Routing Object section:
- From the Maps Base Object Nickname list, select Retail Store
- (Optional) Specify logic to filter specific objects. You can visit all objects or filter objects based on certain conditions.
- Click Save and Next.
-
In the Output section:
-
Select as Visit. This creates a list of visits that are
saved in your Salesforce database and assigned to the reps you designate later in the
template.
Note Configure Visits as an object output in the Maps Advanced Global Settings before they are displayed in the template builder. -
Enter Promotional Windows.
Note If Promotional Windows are configured in the Global Settings, you can include them in the template. -
Enter buffer time.
This automatically calculates the length to your next destination (in traffic). You can also add an extra buffer between visits. The time between visits is the sum of the time in traffic and the buffer time between visits.
-
Enter Max Segment Length.
This sets the limit on the drive time between visits. Maximum segment time is a soft constraint. Locations that require drive time outside of the entered values can still be included in the route, if there is no other way to satisfy their associated frequency requirements.
- Click Save and Next.
-
Select as Visit. This creates a list of visits that are
saved in your Salesforce database and assigned to the reps you designate later in the
template.
-
In the Tooltips section:
- Choose the information you want to see when you click a marker.
- Click Save and Next.
-
In the Define Visit Completion section:
-
In the Visit Object field, select the object that indicates
completion of a visit, for example, assessment task.
This option defines how template builder interprets a completed visit. This Visit Object needs a lookup field to the Routing Object.
- In the field,Lookup Field to Visited Object, specify the relation from the Lookup Field to the Visited Object.
- In the Visit Date field, select a field on the Visit Object.
- In the Optional Advanced Filtering section, you can specify certain field values to include when determining whether to mark the visit as completed.
- Click Save and Next.
-
In the Visit Object field, select the object that indicates
completion of a visit, for example, assessment task.
-
In the Import Planned Visits section:
- Select the appropriate visit object to import the manually created visits
- Click Save and Next.
-
In the Assignment section:
- In the Ownership field, select the user to whom routes are assigned.
- Click Save and Next.
-
(Optional) In the Advanced Prioritization section:
- Prioritize records based on field values within Salesforce.
- Click Save and Next.
-
In the Route Duration section,
-
Select a route type. You have three options to choose from.
- Visit Every Location Once: Select this option to visit every Routing Object once.
- Hit Target Visit Frequency: Select this option to visit every Routing Object a certain number of times during a time span.
- Days Between Visits: Select this option to see a customer a certain number of days since their last visit
- Select the date from which you want the routes to be planned.
- Enter the duration of the visit plan. If you select Repeats, then enter the date until which the routing repeats.
- In the Auto Re-optimization section, choose the day and time to reoptimize routes for the users.
- Click Save and Next.
-
Select a route type. You have three options to choose from.
-
In the Count Completed Visits section:
- Select if you want to start the visit plan in the middle of a performance period.
- Click Save and Next.
-
In the Confirm and Schedule section, you can choose either of
the two options.
- Send Email to User: Select this button to activate the user and generate an email informing the user that they have been added to Advanced Maps.
- Generate Routes: Select this button to trigger a mass reoptimization for all users assigned to the template. You can use this if any changes are made to the template.
Did this article solve your issue?
Let us know so we can improve!

