+ Start a Discussion
Neema Gudur 8Neema Gudur 8 

How to create a custom Geolocation field in a custom object

We have a custom object called Project. This object has custom fields Latitude degrees,Latitude Minutes, Latitude seconds,Longitude Degrees,Longitude Minutes and Longitude seconds. When the user enters values in these fields and saves the Project object, I would like to create an apex trigger to calculate and populate decimal LAtitude and Longitude values into a custom Geolocation compound field. Is it possible to create a custom geolocation field?
Yes, you can create a custom field of type Geolocation which is a combination of Latitude and Longitude.
Neema Gudur 8Neema Gudur 8
Thank You. I was able to create a custom field and populate the values.