Hello. I'd like some help in figuring out how to build a flow that checks the age of files in a OneDrive folder and deletes whatever is older that a time I can define. Anyone? Seems like that should be simple enough, but I'm just not that savvy.
I was looking at this a little the other day and here is what I found:
Regards the above code, this is the JSON from the metadata. This is true for both OneDrive and OneDrive for Business.
You will see a property for LastModified": "2019-02-11T10:37:52Z
There is no CreatedDate so you could use either of the following to access LastModified and to do a comparison on it's date. This tends to do the trick I find!
If you have found my post helpful, please mark thumbs up.
If this post has solved your problem, please click "Accept as Solution".
Any other questions, just ask.
Proud to be a Flownaut!
Find your favorite faces from the community presenting at the Power Platform Community Conference!
Check out the announcement of Power Platform content at Microsoft Ignite!
Features releasing from October 2020 through March 2021