![]() If you are not a premium member and want to download the guides, please sign up for our “All Access” pass. If you are an existing premium member, you can still download the guides by clicking on “DOWNLOAD PDF ” button. (We have discontinued our premium membership offering. Create a Formula Field with DISTANCE() Formula.Here is a short guide on how to enable map & location services and calculate the distance between two locations in Salesforce. So, you might see some difference in the value that is returned and the actual distance can vary when calculated directions between those points on the Google maps. The distance is calculated as a straight line, regardless of geography and topography between the two points. Hence, it is recommended to specify it in your formula name field explicitly for your users to know.Īlthough this is a great feature, there is a caveat to it. However, the unit is not returned with the value. You can specify the unit, miles or kilometers, in the function when creating the formula field. a custom geolocation field and fixed coordinates. ![]() standard address field and a custom geolocation field.Distance is calculated and displayed as a number. Calculate Distance Between Two LocationsĪlso, if you wish to calculate the distance between two locations in Salesforce then you can do that declaratively using the DISTANCE() function. ![]() As it is not available in Developer edition, you need to test it out in a Sandbox first before enabling in production. Having said that, this feature is only available in Professional, Enterprise, Performance, and Unlimited editions. It uses Google Maps to display maps on standard address fields and helps users enter new addresses with autocomplete. You can enable Map & Location services in Salesforce to make it convenient for users when adding address on an Account, Contact, or Lead. ![]()
0 Comments
Leave a Reply. |