cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Kingpin
Kudo Kingpin

Weather app issue

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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

 

View solution in original post

1 REPLY 1
Community Support
Community Support

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

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (14,035)