I have the following action to "List the Files inside a Folder":-
now how i can only get the latest (based on the modified date) 5 files?
i used this formula to get the id of the latest file:-
last(sort(outputs('List_files_in_folder_2')?['body/value'], 'LastModified'))?['Id']
but how i can get the 5 latest files? i can not find a way to do LastN()?