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?
@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.
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
This is how I have configured my flow
Are you able to advise where I am going wrong.
Thank you
Claire Allen
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
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.
Library
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:
Barry
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.
KaFlow
Library
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:
Please take a try and let me know if issue still exist.
Best Regards,
Barry
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1