I am trying to find the replace activity to convert the email body in HTML format to plain text in UiPath but cannot see it. The only activity I can see is the Replace Matching patterns
Hi @Emmanuel_Mutua ,
I believe it is called as Extract Text activity ?
Studio & StudioX
This topic goes in-depth about the improvements in Studio & StudioX. To read about other products, please navigate to the main topic here .
Autogenerated variables for Windows projects
It is now possible to consume activity outputs without manually creating variables on Windows projects on both Studio and StudioX. The functionality had been introduced on the 2023.4 release on Cross Platform projects and it’s now available on the Windows framework. Autogenerated variables shoul…
ppr
(Peter Preuss)
October 20, 2023, 8:40am
3
When the email itself is still available as e.g. MailMessage had you tried to retrieve plain text directly from it. In general we should have the option also to get the PlainText along the HTML Body
ppr
(Peter Preuss)
October 20, 2023, 8:52am
4
About the Extract Text Activity keep in mind that there is still the glue together bug / risk)
HTML:
A code like:
"<p>val#1<ul><li>val#2</li><li>val#3</li></ul></p>"
will result to
Why You are using replace
Enable the option:
If you want to write the HTML code use the below website:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Awesome, now how do I display the extracted text
Awesome, now how do I display the extracted text?
Regex.Replace(CurrentMail.Body,“<[^>]*>” ,“”)