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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Work Anniversary email...
Power Automate
Unanswered

Work Anniversary email sending issue

(0) ShareShare
ReportReport
Posted on by 6

Dear All 

 

created a Flow to send work anniversary . 

the condition added was date of hiring contains the output.

output is formatDateTime(utcNow(),'MM-dd') .

 

the issue is , for example if the date of hiring was 26/11/2004 . the email is sending on April 11 . 

 

kindly for your support . 

Categories:
  • wyattdave Profile Picture
    493 Moderator on at

    Hi @shuhaib ,

    Is the date stored as a full date (26/11/2004 not 11-26) and what is your expression you use to generate the match?

     

  • Mohamed Shuhaib Profile Picture
    6 on at

    Hi @wyattdave 

     

    The date is saved as below . 

    shuhaib_1-1713693744147.png.

    expression used as

    shuhaib_2-1713693845151.png

     

    condition is

     

    shuhaib_3-1713694460453.png

     

     

     

  • wyattdave Profile Picture
    493 Moderator on at

    Hi @shuhaib ,

    Can you try

    formateDateTime(DayOfHirefromSharePoint,'MM-dd') in the left of the condition.


    >--------------------------------------------
    If this helped solve your question please mark it as the solution.

    I also do a weekly Power Platform blog at https://dev.to/wyattdave

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @shuhaib

    Instead of using the Apply to Each action to loop through all items in your SP list and run a condition check on each item to see if their anniversary date is today—it's much more efficient to use a Filter Array action. This way you can filter out the items returned from your SP list first before you loop through them. 

    I cover how to do that in this YT Tutorial: 

    Send Emails Based on a 📆 Date Column in SharePoint with Microsoft Power Automate

    In this Microsoft Power Automate tutorial, I’ll show you how to build a flow that will send a Happy Birthday email to a user based on a date column in a SharePoint list. The SharePoint list also contains a column with a Manager’s name which we’ll use to send a three-day and day of reminder to the user’s manager.

    This automation will use the Filter Array action to filter out all SharePoint list items where the user’s birthday is today or in three days. This flow can apply to a variety of scenarios such as:
    📅 Student Birthdays
    📅 Project Due Dates
    📅 Contract/Membership Renewals
    📅 License Expirations
    📅 Client Anniversaries


    ---
    IN THIS VIDEO:
    ✓ How to Send an Email based on a Date Column in SharePoint
    ✓ Using the Recurrence Trigger in Power Automate
    ✓How to Use the Filter Array Action with multiple conditions
    ✓ How to Get Dynamic Content from a Filter Array Action
    ✓ How to Get a Date Three Days from Today
    ✓ How to Create a Dynamic Date Based on utcNow()
    ✓ How to Return a Count of Items
    ✓ How to initialize and set a variable
    ✓ How to use the Send an Email (V2) action
    ✓ How to send test emails

     

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on
    TikTok and Instagram

     

  • Mohamed Shuhaib Profile Picture
    6 on at

    Hi wyattdave, 

    its giving below error when trying to add expression in left of condition 

     

     

     

    shuhaib_0-1713778916649.png

     

    shuhaib_1-1713778950729.png

     

  • Mohamed Shuhaib Profile Picture
    6 on at

    Hi Creativeopinion, 

     

    i could not understand the explanation , can you please explain it a bit more . 

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @shuhaib The video explains it all. Check out the video!

  • wyattdave Profile Picture
    493 Moderator on at

    sorry you need to add the field from sharepoint instead of Date of hiring from sharepoint (its the value you have in the condition already)

    wyattdave_0-1713796112765.png


    >--------------------------------------------
    If this helped solve your question please mark it as the solution.

    I also do a weekly Power Platform blog at https://dev.to/wyattdave

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard