How to download the latest excel file from sharepoint

@sandhyareddy

You need to retrieve all excel files from the find files or folders activity then we can order by date and get the first file please try the same

latestdriveitem = Results.OrderByDescending(function(x) x.CreatedDateTime)(0)

Cheers