Newer Version Available

This content describes an older version of this product. View Latest

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, do one of the following to avoid uncommitted work errors:

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

Warning