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 / Automatically Send Ema...
Power Automate
Unanswered

Automatically Send Email to Users 30 days prior to date

(0) ShareShare
ReportReport
Posted on by

Dear Community,

 

I am currently trying on working on a Power Automate Flow to automatically send an E-Mail to our workers (responsible intern) when a certain bill is due in 30 days. So if "Date Column"-30=today as a trigger.

 

DateResponsible internAmountProject
07.09.2022email1@emailending.com23023ABC
13.09.2022email2@emailending.com122EFG
21.09.2022email1@emailending.com4674HIJ

 

Then the Email should read something like


"Dear Worker, your project <project> has a bill of <amount> due in 30 days."

Do you guys have any ideas how to do this in Power Automate? Is this possible in Power Automate?

Thanks for your help!

Kind regards,


Janik

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

    Hello @Anonymous ,

    you should add a "Condition" control:

    MarconettiMarco_0-1659944904096.png

    1st parameter:

    formatDateTime('<your_value>','yyyy-MM-dd')

    is equal to

     

    2nd parameter:

    formatDateTime(addDays(utcNow(),-30),'yyyy-MM-dd')

     

    if Yes, send an email.

     

    Both dates must have the same ISO8601 format.

     

    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

  • Community Power Platform Member Profile Picture
    on at

    Hey @MarconettiMarco

     

    thanks for your answer.

    The condition makes perfect sense, but how do I iterate through all the excel rows?

    As in the table, I have many rows and each date should be checked and in case the date is 30days ahead, the email should only be sent to the Email Corresponding in the row.

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Dear @Anonymous ,

    you should add an “Apply to each” control and put inside the Condition. The “select an output from previous step” must be the “value” got from the “list rows present in a table” action.

     

     

    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

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Firstly , if there are more than 256 rows in your excel table you need to trun on the Pagination function and set it to 5000, otherwise the 'list rows' action will only return 256 rows.

    vbofengmsft_0-1660027567519.png

    vbofengmsft_1-1660027580856.png

     

    Secondly, you could add a filter action to filter the array return by the 'list rows' action, I've made a test for your reference:

    vbofengmsft_2-1660027729449.png

    @equals(startOfDay(item()?['Date']), startOfDay(addDays(utcNow(), 30)))
    items('Apply_to_each')['Responsible intern']

    The Result:

    vbofengmsft_3-1660027778973.png

     

    Best Regards,

    Bof

     

     

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