It will give array of files then use For Each loop to iterate that array of files.
ForEach item in strPDFFiles
- use Read Pdf text to read file and store output in a string variable and say ‘pdfText’
If pdfText.Contains(“requiredWord”)
Then: use Move File activity to move the file
Else: Skip it.
I checked your workflow and found two mistakes like:
Declared variable of type string and named RegNR but you did not assign any value to this variable.
In Move File activity, As i mentioned in earlier post From path should be item but you put FunnetReg.
And also before For each loop, take one mesaage box activity and print this value SjekkPdfFiler.count.Tostring and check once.
If it will give any error then that rmeans its did not find PDF files in that folder. Please check folder path properly. It looks like shared folder path. There may be chances of network disconnectivity.
Where it says BS10977 thats the value i want to check. So if the value that the user inputs in the text box at the beginning match the value thats inside the pdf file. I want then to move the pdf file to a folder