Hi everyone,
I am new to Microsoft Flow and I am trying to build a flow that will send an email alert to me 7 days before a document reaches its expiry date. I have the following steps so far:
- Trigger Recurrence - 1 day
- Compose addDays(utcNow(),7,'dd/MM/yyyy')
- Get items
- Apply to each
- Compose formatDateTime(items('Apply_to_each')?['Date_x0020_of_x0020_Review'],'dd/MM/yyyy')
- Conditon @equals(outputs('Today''s_date_+7_days'), outputs('Expiry_date'))
I get the following error:

I have heard the date format can be a problem so I have tried formatting the date as dd/MM/yyyy, dd-MM-yyyy, d/M/yyyy and yyyy/MM/dd but with no luck so far.
I have also tried removing the second Compose step completely and instead putting the Expiry Date straight into the Condition step, see below:

When I do this the flow does run, but the Condition step returns the expression result 'false', even though I have test documents in the library with the date set to 7 days ahead of today's date.
Help much appreciated!
Thanks,
Natasha