cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Resolver II
Resolver II

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (74,860)