cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CameronTCD
Helper II
Helper II

Get next four events by subject and send an email with options

I am looking to create a flow that will grab the next four events from the current date by subject and return them as four values which I can use with 'Create an email with options' so that the receipient can choose an event to attend.

 

Below is a screenshot of how far I have gotten. The top half grabs the email and name of the individual that will be emailed with a choice. 

 

Help would be much appreciated 

 

68YvQRb.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @CameronTCD ,

 

You could filter out eligible events by using the option field in Get events action.

Please try the following method to configure Flow.

  • Use Filter Query to filter out the events contain specified Subject and the Events with a Start Time greater than or equal to today.
  • Sort the events according to Start time and get only four events.
  • By combining the above restrictions, you could get eligible events.

Expression reference:

utcNow('yyyy-MM-ddT00:00:00Z')

Image reference:

7.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
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

1 REPLY 1
v-bacao-msft
Community Support
Community Support

Hi @CameronTCD ,

 

You could filter out eligible events by using the option field in Get events action.

Please try the following method to configure Flow.

  • Use Filter Query to filter out the events contain specified Subject and the Events with a Start Time greater than or equal to today.
  • Sort the events according to Start time and get only four events.
  • By combining the above restrictions, you could get eligible events.

Expression reference:

utcNow('yyyy-MM-ddT00:00:00Z')

Image reference:

7.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,275)