Re: Scan Sharepoint and check for the last time it has been changed
You can create a recurring/schedule Flow and then Get Files from your SharePoint Document Library
To make sure you only get files which were Modified 365 days ago, use Filter query as seen in screenshot below:
Modified lt '@{addDays(utcNow(),-365)}'

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.