Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Salesforce Maps Apex Requirements

This guide introduces you to the Apex methods you can use to perform Salesforce Maps operations without using the UI.
Before using Apex methods, ensure that you have:
  • Access to Apex classes using Enterprise, Unlimited, or Developer Editions
  • Salesforce Maps installed
  • A license for Salesforce Maps or Salesforce Maps Advanced. Methods to get current location and location history also require a license for Salesforce Maps Live Tracking
  • Access to Salesforce Maps objects and Apex classes granted through a permission set: SF Maps, SF Maps Advanced, SF Maps Live Admin, Maps User, or Maps Admin

If you invoke methods within a flow, process builder, or trigger, avoid uncommitted work errors when you perform one of the following.

  • Call the methods through a future method
  • Call the methods as queueable

Different processes refresh the token, such as plotting a route or schedule. The refresh process is almost immediate after each qualifying action occurs.

Warning