cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Variables with Weather Connector

Hello,

 

Looking into sending emails based on the weather for the next day. I figured out how to do it with the conditions control (if chance of rain is greater than 50% send this email, if less than 50% send this email). What I would like to do is be able to use the switch control to allow us to have more than the 8 or 9 conditions we can do with the conditions control.

 

What I am thinking is to setup a variable based on those conditions. If temperature is greater than 70 and rain chance is less than 10% variable equals perfect, IF temperature is greater than 70 and rain chance is between 10% and 50% variable equals chance of rain and good weather, etc. Then those variables go into the switch.

 

Then based upon the weather the Flow then chooses the correct weather variable and sends out the email accordingly. 

 

I hope this makes sense.

 

Thanks

 

Aaron 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous,

 

No, it is impossible to do it within Switch action. As a workaround, you could approach it by adding parallel branch conditions, if the sub condition met, it will run the corresponding branch and set the weather variable:

Annotation 2020-04-15 162602.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
efialttes
Super User III
Super User III

Hi!
Sounds a good approach!
Did you already start to implement it? Any issues found so far?
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Anonymous
Not applicable

@efialttes 

I am actually asking for some help in this. I am trying to figure out if I can use the variables and switch idea or not.

Hi @Anonymous,

 

No, it is impossible to do it within Switch action. As a workaround, you could approach it by adding parallel branch conditions, if the sub condition met, it will run the corresponding branch and set the weather variable:

Annotation 2020-04-15 162602.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (46,444)