Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Summary of Birthdays for the Week Flow

(0) ShareShare
ReportReport
Posted on by 17

I am trying to create a flow that sends a weekly email for birthdays that in the next 7 days. The birthdays are all in a List that I am connecting to in the flow. 

 

Things I'm having trouble with:

1) I want a summary email and not an "apply to each" because I do not want an individual email for each of the birthdays 

2) I keep getting an error message for the action that looks for the birthday: InvalidTemplate. Unable to process template language expressions in action 'Birthday' inputs at line '0' and column '0': 'The template language expression 'formatDateTime(item()['Birthday'],'MM-dd')' cannot be evaluated because property 'Birthday' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.

 

 

  • bebefin Profile Picture
    4 on at
    Re: Summary of Birthdays for the Week Flow

    solved - @length(outputs('Get_items')?['body/value']) greater than 0

  • bebefin Profile Picture
    4 on at
    Re: Summary of Birthdays for the Week Flow

    In case no birthdays for the week, how to stop the flow to send email?

    Capture.PNG

     

  • rodamalco Profile Picture
    17 on at
    Re: Summary of Birthdays for the Week Flow

    Thank you so much!

  • RobElliott Profile Picture
    10,155 Super User 2025 Season 1 on at
    Re: Summary of Birthdays for the Week Flow

    We just have another flow that runs a couple of hours after the first one that updates those items that are less than or equal that day's date by adding 1 to the year using the expression 

    addToTime(outputs('CurrentBirthday'),1,'Year''yyyy-MM-dd')
     
    1-Flow.png

     

    2-Flow.png

     

    3-Flow.png

     

    4-Flow.png

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
  • rodamalco Profile Picture
    17 on at
    Re: Summary of Birthdays for the Week Flow

    Thank you! What I meant was avoiding having to update the list every year with by changing the year. It would be nice if I could just leave the DOB as DOB, but the "today" and "today+6" only look at day and month. 

  • RobElliott Profile Picture
    10,155 Super User 2025 Season 1 on at
    Re: Summary of Birthdays for the Week Flow

    You've missed out the commas before the 6 and after the 6), it should be:
    formatDateTime(addDays(outputs('Today'),6),'yyyy-MM-dd')

     

    Rob
    Los Gallardos

  • rodamalco Profile Picture
    17 on at
    Re: Summary of Birthdays for the Week Flow

    Got it. 

     

    Do you know why it keeps telling me this expressions is not valid:

     

    formatDateTime(addDays(outputs('Today')6)'yyyy-MM-dd')
  • RobElliott Profile Picture
    10,155 Super User 2025 Season 1 on at
    Re: Summary of Birthdays for the Week Flow

    You should use the year in the compose actions because otherwise you will have a problem with the filter query. But you'll see that the email just uses the day, date and month without the year.

     

    Rob
    Los Gallardos

  • rodamalco Profile Picture
    17 on at
    Re: Summary of Birthdays for the Week Flow

    This is super helpful. I will try it now. Is there a way to just use the day and month and not have to update the year to show the "next" birthday?

  • Sundeep_Malik Profile Picture
    6,480 on at
    Re: Summary of Birthdays for the Week Flow

    @RobElliott 

    No Problem Man. You already have the flow created that would definitely help him. I was also gonna suggest the select method. I was thinking to create a similar database, atleast your post saved me from doing that. Hehe.

     

    @rodamalcoHis answer is correct, you should follow it.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492