Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Send an email based on sharepoint library metadata = todays date

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone,

 

I am tearing my hair out trying to get this flow to work.

 

I have a SharePoint Library and in that library is a calculated column called 'Alert Date'. That column contains a date and when that date equals todays date it needs to send an email to 'Alert To' (another column in the library) to notify them that the document in question is close to expiry. The flow should also run everyday at 6:00am automatically.

 

Thing is the codition keeps returning a false value which i know is incorrect becuase i have a test document in the library that has an 'Alert Date' value of todays exact date!

 

The snippet of the flow is below.

 

Compose value = formatDateTime(utcNow(),'dd-MM-yyyy')

 

Can anyone tell me where i have gone wrong?

 

Flow.JPG

  • MichaelDee Profile Picture
    46 on at
    Re: Send an email based on sharepoint library metadata = todays date

    @ClaireAllen @Kathryn_S 
    I got this to work. In your condition step put "Alert Date" is equal to (Fx) "utcNow('yyyy-MM-dd')".

    Very important that you use capital M in yyyy-MM-dd.

    If you still don't get an e-mail, try to use the Condition "No" where you send yourself an e-mail and in this you add the "Alert Date" and (fx) "utcNow('yyyy-MM-dd')". This way you get an e-mail and can compare the two values and their date format.

  • ClaireAllen Profile Picture
    762 on at
    Re: Send an email based on sharepoint library metadata = todays date

    Hello @v-bacao-msft 

     

    I have tried to replicate your workflow as this is something I am trying to do where I have a calculated column modified+365 to give me a Review Date 

    in my library is the Review Date column and then trigger a flow if that date is equal to today, but I've received this error message Date Flow.JPG

     

    This is how I have configured my flow

     

    Retention WF.JPG

     

    Are you able to advise where I am going wrong.

     

    Thank you

     

    Claire Allen 

  • v-bacao-msft Profile Picture
    on at
    Re: Send an email based on sharepoint library metadata = todays date

    Hi @Kathryn_S,

     

    As I mentioned at the outset, this may be related to the time zone setting, because Recurrence and even Flow use UTC time.

    If Recurrence does not set the time zone, then it defaults to (UTC) Coordinated Universal Time, so you could try setting the Time Zone in Recurrence (just like you originally set, set Time Zone to the UTC where you are).

    Please take a try and let me know if issue still exist.

     

    Best Regards,

    Barry

  • Kathryn_S Profile Picture
    4 on at
    Re: Send an email based on sharepoint library metadata = todays date

    Hi @v-bacao-msft

     

    I think you found it!

    In the first picture the Alert Date returns a value of 19/12/2018 but in the actual library, second picture, the date displayed is the 20/12/18. Im not sure how to fix it?

     

    The 'Alert Date' column is a calculated column based on another column 'Next Verification Due Date' - 42 days.

     

    Capture.JPGLibraryLibraryAlert Date.JPGNext Ver.JPG

  • v-bacao-msft Profile Picture
    on at
    Re: Send an email based on sharepoint library metadata = todays date

    Hi @Kathryn_S,

     

    Are you sure that your library has an Alert Date equal to today's file?

    Can you provide a full screenshot of your Flow configuration?

    Yyou could add two Compose, output the specific time of Alert Date and utcNow respectively, you can see if they are equal, if all are unequal, then it proves that there is no file’s Alert date in your library equal to today's date.

    Like:

    58.PNG59.PNG

     

    Barry

  • Kathryn_S Profile Picture
    4 on at
    Re: Send an email based on sharepoint library metadata = todays date

    Hi @v-bacao-msft

     

    Thanks for your reply, unfortunately your suggested have not fixed my issue (if i did them right).

    I removed the timezone and start time in favour of the 'At These Hours' field.

    Removed the 'Compose' action inbetween Recurrence and Get File (Properties Only)

    Updated the conditions to the expression you gave.

    The condition still returned a false value and as a result i didnt recieve an email.

    KaFlowFlowLibraryLibrary

  • v-bacao-msft Profile Picture
    on at
    Re: Send an email based on sharepoint library metadata = todays date

    Hi @Kathryn_S,

     

    I noticed that you set the time zone, it may be because the time zone set on the SharePoint library is inconsistent with the time zone you set in the Flow, so the time does not match, which is the first reason that Flow does not have the expected result.

    In addition, Alert Date also needs to format it into the same format on the right side using formatDateTime(), because its format here is different from that on SharePoint.

    You could make the following adjustments to Flow.

    Formula reference:

    formatDateTime(items('Apply_to_each')['Alert_x0020_Date'], 'dd-MM-yyyy')
    is equal to utcNow('dd-MM-yyyy')

    Image reference:

    56.PNG57.PNG

    Please take a try and let me know if issue still exist.

     

    Best Regards,

    Barry

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1