web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add a condition...
Power Automate
Unanswered

How to add a condition if a calendar event happens in a certain month it will create another calendar event

(1) ShareShare
ReportReport
Posted on by 13

Hello, I'm fairly new to Power automate.  My flow is almost complete but stuck on the last ask of my supervisor.  How do I add a condition (or maybe I should be using something other than a condition) that will create a calendar event on July 31st only if the earlier calendar event happens in the Month of July.  Basically, I created a flow that creates calendar events for students depending on when they started their rotation.   If they start in January their rotation will occur 6mths later sometime in July and then I need a calendar event created for their mid year evaluation to happen on July 31st.  For instance if they start in March their rotation will happen 6mths later in September so they will not have a mid year eval calendar event. So I guess I just need something for the students that start in January?  Thanks for any help!

Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at

    Hi @SuzyK ,

     

    What I what consider doing here is having my students in an excel table with name, email, startdate, and mid-year columns.  The mid-year column can be a simple excel formula that writes the desired date based on their start date.

     

    Create a array variable.

     

    Next you can List rows present in a table with a filter query that says

     

    mid-year eq '2023-07-31'

     

    This is going to give you all the students that need that July 31st evaluation.

     

    In your for each loop you want to loop through the rows and add the student email addresses to your string array with a ';'.  This will end up giving you a string array of tom@somwhere.com; mary@somehwere.com; jim@somewhere.com , etc

     

    Then at the end, below my apply to each, I create my event and the attendees are my string array.

     

    I would have to create this and maybe clean up some steps and/or redescribe them but that's the general process.

     

     

     

     

  • SuzyK Profile Picture
    13 on at

    Hi Tom!  I really appreciate your feedback! But, before I go ahead and create the excel spreadsheet.  Wondering if your thoughts would change... I should have mentioned that this flow is triggered by a Microsoft form that is filled out with the Student name, rotation (1,2 or 3) and the start date.  Is there a way to use that information to create a condition or something like that instead of excel? Thanks again!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard