Attachment pdf open and get text

I wanted see my outlook and open pdf attachment name main1 and want to extract
text from this and make the folder with the help of text and paste the attachment in that folder How i can do this

HI @Kuldeep_Pandey

Can’t understand the query ,Can you explain a bit more about your task?

Regards
Sudharsan

HI @Kuldeep_Pandey

  1. Use get mail activity . you can check has attachment if you want only the mails with attachments
  2. You have as option to save attachments as well. It will save the atatchments to a folder
  3. Then you do Directory.Getfiles() and it will fice you all files in array
  4. use for loop on this array and you can get the file name of each then use create folder pass the filename to it.
  5. Also use a move file to move the file from attachments location to required folder

I hope this is what you wanted

Cheers

Please Explain 3 step

Hi @Kuldeep_Pandey

Directory.Getfiles(“yourmain folderpath”) this will give you all files in that folder in a array variable

Cheers


You Know how to solve this


I am using this

Hi @Kuldeep_Pandey

Change the variable type from string to array and select string of array. It will aolve the issue

Cheers

Directory.Getfiles(Strfilepath, “Main Sheet.pdf”) This for get file


I have done this but not solving error

Hi @Kuldeep_Pandey

If you want all files with name as main sheet.pdf then give Directory.Getfiles(Strfilepath, “*Main Sheet.pdf”)

In which activity you are getting this error?

Cheers

Read pdf text file i m getting error

Hi @Kuldeep_Pandey

To access array you need to follow this pdffile(0) this will give first file…change 0 to 1 u ll get second and so on

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.