cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Helper V
Helper V

Generate weather reports for a list of zip codes

Hi,

 

I'm trying to generate an HTML table with weather data from a supplied array of zip codes. One column would be the zip code, the rest would be weather data. Any ideas on how to accomplish this efficiently? 

 

1.png

 

2.png

 

Any help is appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
Achavan
Resolver II
Resolver II

Hi @dlprentice ,

Step 1 - Compose ->Create Array

Expression - createArray('97352','98683','98826')

Achavan_0-1618553163922.png

Step 2 -Initialize array and set above compose 

Achavan_1-1618553212643.png

Step 3 - Initialize another array 

Achavan_2-1618553242219.png

Step 4 - Add Apply to each

Achavan_3-1618553282855.png

Step 5 - get forecast for today

Achavan_4-1618553309238.png

here for location, below is the expression -

items('Apply_to_each')

Step 6 - Add append to array variable step

Achavan_5-1618553407005.png

Step 7 - Create HTML table of above array

Achavan_6-1618553456749.png

 Output -

Achavan_7-1618553567079.png

 

Hope this help !

 

View solution in original post

4 REPLIES 4
Achavan
Resolver II
Resolver II

Hi @dlprentice ,

Step 1 - Compose ->Create Array

Expression - createArray('97352','98683','98826')

Achavan_0-1618553163922.png

Step 2 -Initialize array and set above compose 

Achavan_1-1618553212643.png

Step 3 - Initialize another array 

Achavan_2-1618553242219.png

Step 4 - Add Apply to each

Achavan_3-1618553282855.png

Step 5 - get forecast for today

Achavan_4-1618553309238.png

here for location, below is the expression -

items('Apply_to_each')

Step 6 - Add append to array variable step

Achavan_5-1618553407005.png

Step 7 - Create HTML table of above array

Achavan_6-1618553456749.png

 Output -

Achavan_7-1618553567079.png

 

Hope this help !

 

View solution in original post

Achavan
Resolver II
Resolver II

@dlprentice 

if above post helps you, then please mark it as solution and help other members find it more quickly.

 

I am new to this 🙂  I have a condition set to equal a certain field.  How can I add a condition that is "AND is equal to one of these 62 zipcodes?"  I am having trouble with the right field type and how to express the multiple zip codes.  Thanks so much!

Hi @slindsay ,

1. Add step apply to each

Achavan_0-1619510240374.png

 

2. Add condition

Achavan_1-1619510261897.png

To read array use below expression -

items('Apply_to_each_2')

and add your condition

 

 

hope this helps !

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,302)