Need to extract specific text from an outlook email and save it to an excel file

Hello,

I am working on an automation to

  1. Extract text from an email document and save it to an excel file. The target text consists of two lines, a file name and a password. The emails will all have the same name.
  2. Write to an excel file, adding the file name and password in separate cells and then saving the excel file with the file name as its’ name.
  3. Finally, opening up a PDF file with the same file name and inputting the password that was saved from the email into the password field of the PDF.
    Any and all help y’all can provide would be greatly appreciated. I’m very new to UiPath.

Thank you very much!

@craig.mcdonald

This a pretty much straight forward process. Any specific issue you are facing while automating this?

Hello @ashokkarale,

I’m running into all kinds of issues with this. Like I said, I’m very new to UiPath and have not written any automations for outlook yet. I’m still going through the training courses that are provided.

Alright @craig.mcdonald!

Please share the economic sample you are going to get so we can suggest the solution to data extraction.

@ashokkarale

I cheated a bit and used the “generate” resource to build the automation. The automation is successfully recognizing the target email, but it is not creating an excel file to save the filename and password in. This is what was created:

@ashokkarale

@craig.mcdonald

use write cell activity to write data to excel

also first complete the basic training that would help build this easily

also if you dont need you neednot save to excel also directly use those values to open file and use the password as well

cheers

cheers

@craig.mcdonald

Extract Text activity will give you list type output.

You can build a Datatable and add this extracted data into the Datatable using Add Data Row activity.

Once you have the Datatable use Write Range activity to write the data to excel file.

Hello @Anil_G & @ashokkarale

Thank you for the replies. I have been able to get this automation to successfully pull the file name out of the email and save it to an excel file. But, it still is not extracting the password. The password is unique for each file name that the system shares. I have the starting text show as "Password : ", which is how it is written in the email. For the ending text, I have “–”. Is there a better option for the ending text for the password?

Thank you very much.

@craig.mcdonald

You can use any start or end

just make sure you are splitting it correctly

to check run in debug and check from immediate and locals panel on how the actual string looks

cheers

1 Like

Hello @Anil_G

Victory! I had to put in a return between quotations for the system to recognize the password. In the email, there’s no text after the password, just a few blank lines before the next character appears. Thank you for your help.

1 Like

@craig.mcdonald

happy automation

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