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 / Trigger email flow whe...
Power Automate
Unanswered

Trigger email flow when sharepoint list date is today

(0) ShareShare
ReportReport
Posted on by 19

I have a SharePoint list that has 3 different date fields and a Choice field. The date fields are 

1. "Letter Sent Date"   (Date and Time column - manually updated with each entry)

2. "3 months from 'Letter Sent Date' column"  {Calculated column: =DATE(YEAR([Letter Sent Date]),MONTH([Letter Sent Date])+month,DAY([Letter Sent Date]))}

3. "Fortnight before 3 months from 'Letter Sent Date' column"  {Calculated column: =[3 Month date]-(7*2)}

4. Choice field "Decision for Re-registering"  (Choices are Yes, No)

 

I would like a flow to trigger if the choice field is Blank (null) AND the date within the "Fortnight before 3 months from 'Letter Sent Date' column"  {Calculated column: =[3 Month date]-(7*2)}"  is today's actual date. 

 

I would like an email to be generated and sent at around 9am if both criteria is met.  I am in Brisbane Australia time zone.

 

Any help would be appreciated. 🙂

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi@Kelley,

     

    Do you want to check whether there are eligible records regularly and decide whether to send emails based on the results?

    I have made a test for your reference.

     

    1.Here is my SharePoint list.

    vyujincuimsft_0-1639718968053.png

     

    vyujincuimsft_1-1639718968057.png

     

    vyujincuimsft_2-1639718968059.png

    2.Create a flow.

     

    @and(lessOrEquals(item()?['Fortnightbefore3monthsfromLetter'], utcNow()),greaterOrEquals(item()?['OData__x0033_monthsfromLetterSentDate'], utcNow()),equals(item()?['DecisionforReregisterin/Value'], null))
    item()?['Title']
    formatDateTime(addHours(item()?['LetterSentDate'],10),'MM/dd/yyyy mm:ss')
    formatDateTime(addHours(item()?['OData__x0033_monthsfromLetterSentDate'],10),'MM/dd/yyyy mm:ss')
    formatDateTime(addHours(item()?['Fortnightbefore3monthsfromLetter'],10),'MM/dd/yyyy mm:ss')
    item()?['DecisionforReregisterin/Value']

     

    vyujincuimsft_3-1639719200116.png

    vyujincuimsft_9-1639721352448.png

    Combine the conditions in the previous three Filter Array Actions into one Action, you can click the Edit in advanced mode, and write expressions in it.

    vyujincuimsft_10-1639721505249.png

    vyujincuimsft_6-1639719380174.png

    vyujincuimsft_7-1639719380179.png

     

    Result Screenshot:

    vyujincuimsft_8-1639719380180.png

     

    Best Regards,

    Charlie Choi

  • Kelley Profile Picture
    19 on at

    Hi Charlie,

     

    thank you for providing a reply to me. I have been away on leave and only returned today. I have completed the actions as outlined below and an email has triggered however there were no items within the list in the email. (the sharepoint list has a few dummy items). 

    What are the reasons an item would be in the HTML list? 

    Kelley_0-1641428602608.png

    Kelley_1-1641428699350.png

     

  • v-yujincui-msft Profile Picture
    on at

    Hi @Kelley ,

     

    I noticed that there is no data in your HTML table, could you please check the outputs of the Filter Array Action and the Create HTML table Action and see if there are values there? Maybe this is the reason for the problem.

    vyujincuimsft_0-1641462740258.png

    vyujincuimsft_1-1641462740263.png

     

    Best Regards,

    Charlie Choi

  • Kelley Profile Picture
    19 on at

    Hi Charlie,

    There appears to be information within the Filter array 4 but not within the Create HTML table. (see below).

     

    Here is what I have added into the Filter Arrays/COnditions and Create HTML table (as well as the outputs below).

    Kelley_2-1642374073938.png

     

    Kelley_3-1642374100778.png

     

     

    Kelley_0-1642373984028.png

    Kelley_1-1642374009534.png

     

  • v-yujincui-msft Profile Picture
    on at

    Hi @Kelley ï¼Œ

     

    1. According to the screenshots you provided, I found that the outputs of your Filter Array 4 is empty.

    vyujincuimsft_0-1642385926921.png

    2. Could you please check the outputs of Filter Array 3 to see if the dynamic content you have selected is correct, since in this Action you are using the Choice column?

    vyujincuimsft_1-1642385926923.png

    3.In addition, I found two filling errors in your Create Html table Action. You should write the expression in the Expression tab.

    Note: Use the internal name of the field.

    vyujincuimsft_2-1642385926924.png

    item()?['Title']
    item()?['Re_x002d_Registering_x0020_Compa/Value']

    vyujincuimsft_3-1642385926927.png

    vyujincuimsft_4-1642385926927.png

    vyujincuimsft_5-1642385926930.png

     

    Best Regards,

    Charlie Choi

  • Kelley Profile Picture
    19 on at

    Hi Charlie,

    I am most grateful for your assistance, but the email is still coming through without the table. See below.

    Kelley_0-1642397530378.png

    Here is the flow at a high level.

    Kelley_1-1642397596348.png

    Here are the filter arrays

    Kelley_2-1642397648292.png

    this is the full expression/condition in the Filter Array 4

    @And(lessOrEquals(item()?['OData__x0031_4_x0020_days_x0020_before'], utcNow()),greaterOrEquals(item()?['OData__x0033__x0020_MONTH_x0020_DATE'], utcNow()),equals(item()?['Re_x002d_Registering_x0020_Compa/Value'], null))

     

    This is the condition:

    Kelley_3-1642398159454.png

     

    Which 'Body' do I select in the 'Create HTML table' - from which filter Array? Currently it is Filter array 4

    Kelley_4-1642398244460.png

     

    May I please trouble you for your assistance. thank you very much 🙂

     

     

     

     

  • v-yujincui-msft Profile Picture
    on at

    Hi @Kelley ,

     

    Yes, you should select the Body of Filter array 4 in the 'Create HTML table' action.
    Have you checked the outputs of Filter array 4? Is it empty?
    Try putting the Send an email(V2) Action into the If yes branch of the Condition.

    vyujincuimsft_0-1642413039058.png

     

    Best Regards,

    Charlie Choi

  • Kelley Profile Picture
    19 on at

    Hi Charlie, 

    I have added the 'Send an email(V2) Action into the If yes branch of the Condition'.

    The Filter array 4 is still empty. []

    Kelley_1-1642456807517.pngKelley_2-1642456827522.png

    What am I doing wrong?

  • v-yujincui-msft Profile Picture
    on at

    Hi @Kelley ,

     

    Could you please double check your data source? It seems that the data source has no eligible records.

    vyujincuimsft_0-1642468588295.png

     

    Best Regards,

    Charlie Choi

  • Kelley Profile Picture
    19 on at

    Hi Charlie,

     

    Yes there is data within the SharePoint list.

    Kelley_0-1642479263150.png

    Kelley_1-1642479292613.png

    thank you 🙂

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