If you want to process that particular Invoice , then you can give that path directly.
OR
try to use Directory.getfiles(folderpath,“*.pdf”).first, it will get the first pdf in the folder
If you want to process that particular Invoice , then you can give that path directly.
OR
try to use Directory.getfiles(folderpath,“*.pdf”).first, it will get the first pdf in the folder