I have been working on a flow to send a task when any document has not been modified for one year. It is actually 11 months so we can provide evidence our documents are being reviewed. I have a flow that will reoccur daily and check the modified date but I only want to create a single task after 11 months (or 330 days). I have got it to work with less than or equal to but that will generate a task every day after that. I have tried a condition and filter array. The filter array does not actual filter my documents down. During my test it creates a task for every document and the condition comes back false. I have also calculated the days between dates and equal that to 30.
Here are the expressions I have used.
This example the document is 110 days old. Modified is equal to
addDays(utcNow(),-110,'yyyy-MM-dd')
Filter array 30 days before expiration
@equals(formatDateTime(utcNow(), 'yyyy-MM-dd'), addDays(item()?['OData__dlc_ExpireDate'], -30))
Count Days
eq(div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(outputs('Get_file_metadata')?['body/OData__dlc_ExpireDate'])),864000000000),30)
Any advice on getting any of these to work.