cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

"Invalid use of "." " when using Location.Longitude/Latitude

Hello,

 

I'm following the instructions here: https://powerusers.microsoft.com/t5/General-Discussion/Google-map-and-pin-in-PowerApps/td-p/3209/pag... and can create the map and such without issue. I even have Location.Latitude and Location.Longitude working in the google map URL:

 

"https://maps.googleapis.com/maps/api/staticmap?center=" & Location.Latitude & "," & Location.Longitude & "&zoom=18&size=600x600&key=<myAPIKey>=color:red%7Clabel:A%7C"

 

However, when I try to use Location.Latitude or Location.Longitude in a function, Intellisense does not correctly highlight the function. I get the error "Invalid use of "." pointing me to the period between Location and Latitude/Longitude. 

 

Anyone else having this issue? It worked fine THE FIRST TIME I typed the function. Now won't work. 


Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: "Invalid use of "." " when using Location.Longitude/Latitude

AHA! Figured it out... 

 

The Location function cannot be called from a button inside a form Card. If button is outside the card, not problem. If INSIDE the card, the error appears. 

View solution in original post

1 REPLY 1
Super User
Super User

Re: "Invalid use of "." " when using Location.Longitude/Latitude

AHA! Figured it out... 

 

The Location function cannot be called from a button inside a form Card. If button is outside the card, not problem. If INSIDE the card, the error appears. 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 176 members 5,316 guests
Please welcome our newest community members: