Re: move files with lastmodified date > 30 days to another folder
Hi @Anonymous,
Would you please share information about what the data source you would like to work with?
Actually there is a way to deal with the modified date, first we need the source connection under Microsoft Flow contains the List files in folder Action.
After add the List files in folder action, add a condition, choose the LastModified property as the input of the first Input box, this would add an Apply to Each automatically, after that, click the Advanced mode of condition, copy and paste the following code:
@greaterorequals(sub(int(utcnow('yyyyMMdd')),int(formatdatetime(item()?['LastModified'],'yyyyMMdd'))), 30)
Then under the Yes part, add the Copy file Action, then Add the Delete file Action.
By testing I found some problems when working with the Apply to each, I will update here once I got the response back from PG.
Regards,
Michael