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 : PC6D22EDKIh+AvoZljtIUP
Power Automate - Building Flows
Answered

Automatically Send Email to Users 30 days prior to date

Like (0) ShareShare
ReportReport
Posted on 8 Aug 2022 07:36:19 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

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on 09 Aug 2022 at 06:49:47
    Re: Automatically Send Email to Users 30 days prior to date

    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

     

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 08 Aug 2022 at 11:01:54
    Re: Automatically Send Email to Users 30 days prior to date

    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

     

  • Community Power Platform Member Profile Picture
    on 08 Aug 2022 at 10:20:15
    Re: Automatically Send Email to Users 30 days prior to date

    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 08 Aug 2022 at 07:52:10
    Re: Automatically Send Email to Users 30 days prior to date

    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

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete