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
mahi1mahi1 

How to Get Latitude and Longitude Values of GeoLocaton field from Apex(Trigger)

Hi all,
    How to get Latitude and Longitude Values dynamically to update while inserting Records into Object




Thanks in Advance.
sakshi gandhisakshi gandhi
@Mahi1 you need to create a formula field to calculate latitude and longitude and write a workflow to update those fields with criteria 'When record is created'

Thanks
srikanth challasrikanth challa
I got the same requirement last week. Follow this link.

https://blog.internetcreations.com/2012/09/creating-a-geolocation-trigger-in-salesforce-winter-13/