I have downloaded a pdf. It gets stored in “C\downloads”. It should take recently downloaded pdf only and get the data from it
This is my flow.
But I’m getting an error on assign - “Visualbasic’I’”.
Please help. Thankyou
I have downloaded a pdf. It gets stored in “C\downloads”. It should take recently downloaded pdf only and get the data from it
This is my flow.
But I’m getting an error on assign - “Visualbasic’I’”.
Please help. Thankyou
use if Activity and pass the output of Path Exists and in the then block use
Read pdf text activity or Extract pdf text activity and pass the file path not output of path exists
Ok, But what about the error above on the assign how should I fix it?
Thanks
I tried to pass the path in it but I’m getting Iresourcelocal error
Directory.GetFiles(“”,“*.pdf”,SearchOption.AllDirectories).OrderByDescending
Use read pdf text activity
Hi @BHUSHAN_NAGAONKAR1 ,
Check double quotes here. Try typing it manually: “*.pdf”
Hope its works you
Regards,
Vinit Mhatre
Directory.GetFiles("","*.pdf",SearchOption.AllDirectories).OrderByDescending(Function(a) new FileInfo(a).CreationTime)
Visual Basic error means your double quotes aren’t right. Please Re-type your Double quotes, this should solve the error.
Directory.GetFiles(path, "*.pdf").OrderByDescending(Function(d) New FileInfo(d).CreationTime).ToArray()
Regards
Hi @BHUSHAN_NAGAONKAR1 ,
Use below expression
Directory.GetFiles("download folder path", "*.pdf").OrderByDescending(Function(file) New FileInfo(file).LastWriteTime).FirstOrDefault()
Regards,
Vinit Mhatre
It worked, how can I pass the path to extract pdf and extract string.
And I have to share that path to “Extract Pdf Text” Activity?
LocalResource.FromPath(arrstr.First)
You need to pass the arrayvariable.first
in both the activities in Path exists and Extract PDF text activity
This worked thankyou.
Thankyou for your time and help
@Shiva_Nikhil Thankyou for your help and prompt response.
Happy Automation !!
Regards,
Vinit Mhatre