cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Akashdeep
Helper II
Helper II

how to save location and distance in data-verse automatically when I started an app and after every 3sec it will save data how?

I have done geo fencing In which when I clicked on check-in button than it save that data I want after every 3sec it will save automatically , what can I do ?

please reply me ASAP

2 REPLIES 2
EricRegnier
Super User
Super User

Hi @Akashdeep, if you're using a canvas app then use a timer control https://docs.microsoft.com/powerapps/maker/canvas-apps/controls/control-timer if model-driven app, then you'll need to revert to JavaScript.

rampprakash
Super User
Super User

Hello @Akashdeep,

 

If it is Powerapps you can use

Latitude as : Location.Latitude

Longitude as : Location.Longitude

 

And Click Insert Option and Add a Timer Button and make it trigger for 3 minutes follow the link which was shared by @EricRegnier.

 

Then on Timer End you can Patch the Locations(Latitude and Longitude) to the database.

 

Patch(dbName,Default(bdname),{Latitude: Location.Latitude, Longitude: Location.Longitude});

 

Please Mark as Answer if it's helpful

 

Subscribe : https://youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

 

Blog : https://microsoftcrmtechie.blogspot.com

 

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (4,046)