function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?
SalesFORCE_enFORCErSalesFORCE_enFORCEr
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.