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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Birthday email flow matching any date instead of just month and day MM/dd

(0) ShareShare
ReportReport
Posted on by 17

Hello Everyone,

I have a flow that is matching any 4 characters of the output to the birthday.  For example, the Getdatetime output is 02/19.  The email notification will go out to all dates with any of the 4 characters like 06/02/1974.  Is there any way to only match the MM/dd?

 

BHarTT_1-1645463817711.png

 

 

BHarTT_0-1645463777274.png

Thank you in advance.

I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,240 Most Valuable Professional on at
    Re: Birthday email flow matching any date instead of just month and day MM/dd

    @BHarTT 

    Try this:

    image.png

     

    SharePoint stores dates internally as yyyy-MM-dd 

    I noted that you have almost 5000 items in the list - Flow can't retrieve more than 5000 items unless you have a premium license.

    It would be better if you added two additional columns to the list - one for the month and another for the day of the birthday.  Do not make them calculated columns - have a Flow populate the new columns.  If you do so, then you can use an OData filter query which would be much more efficient.  

    I tried solving your issue using substringof and endswith in an OData filter but was not successful.

  • BHarTT Profile Picture
    17 on at
    Re: Birthday email flow matching any date instead of just month and day MM/dd

    Hi ScottShearer,

     

    Thank you for that.  I am testing and will have the results on the next run tomorrow morning.  I will report back then.

     

  • BHarTT Profile Picture
    17 on at
    Re: Birthday email flow matching any date instead of just month and day MM/dd

    Hi ScottShearer,

     

    I ended up using MM/dd/ in the formatDateTime since that is how they are coming out in the Get Items export for that column.  It seems to have done the trick but I won't know for sure until the 19th and 20th of next month.  Thanks for your help, and I will mark as answered once confirmed.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard