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 / Weekly birthday remind...
Power Automate
Unanswered

Weekly birthday reminders at the start of every week?

(0) ShareShare
ReportReport
Posted on by 166

Hi, 

 

I posted about this last week - I thought I had solved the problem, but the flow seems to be wrong.

 

I want to create a flow that triggers every Monday and send me a list of peoples birthdays that sit within the week. This is not a flow that send an email on the persons birthday. But rather pulls a list of all the upcoming birthday this week. 

 

I have created this flow:

DynamicsHS_0-1659423487224.png

using: to pull the start of the week 

 

addDays(utcNow(),int(concat('-',dayOfWeek(utcNow()))),'d')

 

 & for the end of the week

 

addDays(utcNow(),sub(6,dayOfWeek(utcNow())),'d')

 

 I created a condition so that the converted birthdates in short pattern time are greater than and less than (essentially saying that the birthdate needs to sit within the start and end of the week.) 

 

However, for some reason the flow is pulling everyone's birthday who sits within the this month rather than this week. 

 

I know someone mentioned on a previous post that I should use ticks? however, I cant seem to find any good material that explains this in depth. 

 

I'm pulling my hair out with this one, hopefully someone can provide me some guidance? 

 

Regards,

Henry

 

 

Categories:
I have the same question (0)
  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @DynamicsHS ,

    please try to check the day of month value:

    1. Add a "Compose" action in which put the following expression:

    dayofMonth(utcNow())

    2. Add another "Compose" action putting the following expression:

    add(outputs('Compose-DayOfMonthUtcNow'),6)

    3. Within the Apply to each loop, add a "Compose" action putting the following expression:

    dayofMonth(item()['birthdate'])

    4. in the Condition control add this expression:

    and(greater(outputs('Compose-DayOfMonthBirthdate'),outputs('Compose-DayOfMonthUtcNow')),less(outputs('Compose-DayOfMonthBirthdate'),outputs('Compose-Add6Days')))

    if equal to 

    true

     

    Append to Array variable.

     

    Here the full flow:

    MarconettiMarco_0-1659427788724.png

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

  • Henry G Smith Profile Picture
    166 on at

    Hi Marco, 

     

    Thank you. This worked - I had the start of the week and end of the week formulas in the apply to each - they needed to be outside of it like yours. 

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard