web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Weather app issue

(0) ShareShare
ReportReport
Posted on by 3,271

Hi there,

 

I have this app using the MSN weather and I have the following:

 

App OnStart:

Set(myLocation, BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude))

 

Button:

UpdateContext({Weather: MSNWeather.CurrentWeather(myLocation.name, "Imperial")})

 

Label to check Postal Code Retrieved:

myLocation.address.postalCode

Result: L5A 3C6

 

Label Temp: 

MSNWeather.CurrentWeather(myLocation.address.postalCode,"Imperial").responses.weather.current.temp

 

Label Wind:

MSNWeather.CurrentWeather(myLocation.address.postalCode,"Imperial").responses.weather.current.windSpd

 

Label Humidity:

MSNWeather.CurrentWeather(myLocation.address.postalCode,"Imperial").responses.weather.current.rh

 

And the problem is, sometimes the app only catch the first 3 letters for my postal code and showing this error:

 

Any help?

 

thanks in advance

 

image0.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @sajarac ,

     

    The Valid inputs of Location parameter in MSNWeather.CurrentWeather function are City, Region, State, Country, Landmark, PostalCode, and Lat.Long. 

    If the postal code it returns is not complete, please change to use other input.  For example:

    MSNWeather.CurrentWeather(myLocation.name,"Imperial").responses.weather.current.temp

    Or

    Weather.responses.weather.current.temp

     

    Hope this helps,

    Sik

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard