Extract data from each New PDF in a folder

Hello there!

I’ve created a flow to read pdf. Now I want to repeat this activity every time I save a new pdf.

But I have some problem after setting the trigger. In extract data activities I can’t set the correct variable that at the moment is the single file.

Hi @Dario_Mutolo
you can create one variable of array of string pass below expression and loop through each file and once file is process you can move that file to archive folder

System.IO.Directory.GetFiles(FolderPath, “*.pdf”).OrderBy(Function(f) System.IO.File.GetCreationTime(f)).ToArray()

Can I get the same result using “file change trigger”?

Yes you can pass in pdf file activity or extract document activity below expression in your existing workflow

args.FileChangeInfo.FullPath

Happy Automation