Get newest file in the directory

you should give the needed definition of newest from your requirements as newest can be:

  • based on creation date
  • based on parts from the filenname (e.g. date, sequence number)

Find some essential statements here:
[CheatSheet] - Filesystem APIs - News / Tutorials - UiPath Community Forum