Making Your Salesforce Data Location-Aware
Help your sales and marketing teams find nearby prospects, assign territories and campaigns, and more! All this is a cinch with Automatic Geocodes for Addresses, available in the Summer ‘16 release. Now you can automatically add geocode information to the pre-existing latitude and longitude fields on accounts, contacts, and leads.
Why do geocodes matter in Salesforce? Unlike addresses alone, geocodes can be used to determine the distance between two points, enabling powerful location-based SOQL queries. Add some custom code to really unleash the power of geocodes. Use them to segment customers and prospects, identify white space, create heat maps, and much more!
Why do geocodes matter in Salesforce? Unlike addresses alone, geocodes can be used to determine the distance between two points, enabling powerful location-based SOQL queries. Add some custom code to really unleash the power of geocodes. Use them to segment customers and prospects, identify white space, create heat maps, and much more!
Benefits:-
Location-Based SOQL Queries:
If you want to identify all of your customers within a 50 mile radius of a specific location. You can run a SOQL query using the DISTANCE and GEOLOCATION functions.
Example:
Reporting by Distance
To enable users to run reports by distance, create a custom formula field to hold the distance calculation. You can enter the latitude and longitude manually, or use the SOAP API to set values for the global variables $Organization.Latitude and $Organization.Longitude.
Example:
Example:
you have to use above code in formula fields, you can also check the distance in miles(mi) or kilometers(km) but first you have to update your organization's Latitude/Longitude.
No comments:
Post a Comment