Cert++
Close

Salesforce Maps Advanced object setup for Consumer Goods routes

Key Takeaway

In the Agentforce Consumer Goods enhanced data model, new visits need a Place ID and a Visit Template. A custom setting stores the default values. A fast (before-save) record-triggered flow assigns them before the visit is created.

Salesforce Maps Advanced builds optimized routes, called visit plans, that schedule field reps for store visits. Maps Advanced schedules reps for in-person visits only. Salesforce Maps doesn't know Agentforce Consumer Goods objects by default, so you tell it three things: which object holds store locations, where to save scheduled visits, and how to tell when a visit is done. The enhanced data model also needs a custom setting and a flow so that new visits get their required fields.

The objects a visit plan needs

A visit plan depends on four choices:

PurposeIn Agentforce Consumer Goods
Routable objectThe stores to visit, with their location dataRetail Store
Calendar or output objectWhere scheduled stops are savedVisit
Visit objectWhere completed visits are recordedVisit, or another object such as an assessment task
User lookupAssigns stores to repsA user lookup field on Retail Store

The Visit object can fill two different roles. As the output object, Visit is where Salesforce Maps writes scheduled stops. As the visit object, Visit is where Salesforce Maps reads whether a visit was completed.

Rep Ana has four stores on Thursday's route. Salesforce Maps writes four Visit records for those stops, so Visit is acting as the output object. Later, Salesforce Maps checks those Visit records to see whether Ana completed each visit, so Visit is now acting as the visit object.

Salesforce Accredited Agentforce Consumer Goods Professional Study Guide

Checklist progress

0/191Learned

Demonstrate knowledge of Consumer Goods Cloud visit planning capabilities.

0/22

Visit object key fields and lookups

Learn this concept

Trip list-based visit planning

Learn this concept

Automatic visit planning modes

Learn this concept

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Salesforce Accredited Agentforce Consumer Goods Professional studiers. 757 members and growing.