cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CameronTCD
Level: Powered On

Variables & Selecting Times

I have a Flow that grabs meetings, filtered by subject & timespan.

This gets me a singular outcome every time. As seen below, I have three of these actions running in paralel meaning that I have three meeting instances.

 

From here, I take the date and the location of each meeting (will always be either Skype or Classroom) and compose these into an email. An example of this can be seen below.

 

I want to determine the time of each of these meetings.

 

I want it to determine;

If the location of the meeting is 'Skype', the time will be '12:00.

If the location of the meeting is 'Classroom' the time will be 16:00'

 

I think that there may be a way to do this using variables however I'm not up to scratch on using them and as such have had no luck... 

 

Help would be much appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Variables & Selecting Times

Hi @CameronTCD,

 

What's the format of the time 12:00, is it string or time?

If it is string, you can do like the following:

if(equals(body('Get_event_(V3)')?['location'],'Skype'),'12:00')

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

2 REPLIES 2
Super User
Super User

Re: Variables & Selecting Times

Hi @CameronTCD 

 

You can use the expression if condition to check the value and set the values.  Please see below.

 

exp3.png

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: Variables & Selecting Times

Hi @CameronTCD,

 

What's the format of the time 12:00, is it string or time?

If it is string, you can do like the following:

if(equals(body('Get_event_(V3)')?['location'],'Skype'),'12:00')

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,541)