Get current GPS location in PowerApps

To get the current GPS location in PowerApps, you can use the Location function.



Here's an example of how you could use this function:

  1. Add a button to your app and give it a label such as "Get GPS Location".
  2. In the OnSelect property of the button, add the following formula:
  3. Set(LocationValue, Location.Latitude & "," & Location.Longitude)
    
  4. Add a Label control to your app and bind its Text property to the LocationValue variable.
When you run the app and tap the button, the Label control should display your current GPS location in the form of latitude and longitude.

Note: The Location function requires that you grant PowerApps access to your device's location services.

Comments

Popular posts from this blog

InfoPath to PowerApps: Best Practices

Create Azure AD groups from a CSV file

PowerApps Governance: What to consider