
Hi All,
I am trying to set an automation flow to essentially archive SharePoint data from a document library with a date modified date older than 2 years (730 days) to an additional document library in the same SharePoint site whilst mirroring the folder structure. I've attached a screenshot of the flow I am currently using.
An issue is occurring where it isn't taking the condition of 730 days into account and is only replicating certain folders from the 'production' document library.
If anyone can help that would be greatly appreciated.
Your issue is likely with how Power automate handles dates. One thing that will help you is to use a compose action prior to your condition.
Try to run the flow and see if the output of those compose actions are in the format that you need them to be to compare them. If they aren't there are a lot of date functions that you can use to format them in a way they can be compared.