You need to sign in to do that
Don't have an account?
NM Admin
Fetch current logged in users location for every hour and store it into the custom object.
Here is the detailed requirement:
I have requirement in that I wan to fetch current logged in users location(Latitude and Longitude) and store the information into the custom object to show google map. I also want to fetch the same information every hour by using scheduled batch class and store the info in to the custom object.
So the challange is that I have done the requirement by using visualforce page but I'mmnot able to schedule the page OR refresh the page from teh batch class.
Can we do this using batch class? Can we navigate to the visual force page from batc class?Can we achieve this without using javascript? OR is there alternative solution to achieve this requirement?
Welcome to youe suggestion!
Thanks,
Nilesh
I have requirement in that I wan to fetch current logged in users location(Latitude and Longitude) and store the information into the custom object to show google map. I also want to fetch the same information every hour by using scheduled batch class and store the info in to the custom object.
So the challange is that I have done the requirement by using visualforce page but I'mmnot able to schedule the page OR refresh the page from teh batch class.
Can we do this using batch class? Can we navigate to the visual force page from batc class?Can we achieve this without using javascript? OR is there alternative solution to achieve this requirement?
Welcome to youe suggestion!
Thanks,
Nilesh
You can schedule the batch every hour
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_logingeo.htm
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_authsession.htm?search_text=AuthSe
The AuthSession object represents an individual user session in your organization. This object is available in versions 29.0 and later.
Thanks Raj,
AuthSession object: getting session details only.
LoginGeo: getting location from which location user logged in into the system.
I want to track the location(Latitude and Longitude) of the sales person for every hour.
E.g.
If user started journey from A location.(Store the location from where the user started journey).
After hour check the users current location(Store the users current location).
like wise in the whole day check how much locations the sales person visited and form a map of the journey.
Any other approach?
Thanks,
Nilesh