cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert HTML code to plain text?

AnnaRydzewska
Level 2
Hello,
How can I convert HTML code to plain text? What dll files are used for decoding HTML? How can I reference to this dll in code stage?

Thank you,
Anna Rydzewska

------------------------------
Anna Rydzewska
RPA Developer
Rockwell Automation
Europe/Warsaw
------------------------------
14 REPLIES 14

@Alex Traynor,

If you only want plain text bodies returned, change that line of code to this:

row("Body") = item.Body​

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi @Tejaskumar_Darji,

Apologies for not responding to your comment previously. I must have missed it.

To be clear, the VBO doesn't default to returning the HTML body. The VBO checks the BodyFormat property of the message to determine what format it is in and then it returns the appropriate body value based on that. Since we're talking Outlook, most emails show up in HTML format and that's why you see that most of the time. Yes, we can add an override flag for this.

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Thanks Eric appreciated!

------------------------------
Alex Traynor
------------------------------

Thank You @ewilson for clarifying and considering the input flag.​

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Anonymous
Not applicable

Thanks for this information



------------------------------
Lovely Baghel
------------------------------