I have a Power Automate flow that should send an email 3 days before a specific date.
I created a SharePoint list where the StartDateAndTime column contains the dates for which I want to receive a notification 3 days in advance.
In the Filter Query field, I entered the following code:
StartDateAndTime gt '@{formatDateTime(utcNow(), 'dd.MM.yyyy HH:mm')}' and StartDateAndTime lt '@{formatDateTime(addDays(utcNow(), 3), 'dd.MM.yyyy HH:mm')}'
When I test the flow, I encounter an error, and I’m not sure what’s causing it. Could it be the date format in the column, the filtering logic, or something else?
For additional context, the StartDateAndTime column is configured as a Date and Time type.
Does anyone know how to correctly configure the Filter Query so it works as expected?
Thank you in advance for your help!
I followed the instructions you provided and added an hour to the date, but I’m still facing an issue. I’m using the "Filter Array" action in Power Automate, where I retrieve the date from a column and compare it with the current date. The output is 0, even though the day, month, year, hour, and minute are the same.
Does anyone know why the comparison isn't working, even though the values seem identical? Could it be related to the date format, time zones, or something else?
formatDateTime(body('Convert_time_zone'), 'yyyy-MM-ddTHH:mm:ss.fffffff')
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.