Replace Activity Help

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 ?

1 Like

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

About the Extract Text Activity keep in mind that there is still the glue together bug / risk)
HTML:
grafik

grafik

A code like:

"<p>val#1<ul><li>val#2</li><li>val#3</li></ul></p>"

will result to
grafik

1 Like

Why You are using replace

Enable the option:
image

If you want to write the HTML code use the below website:

Awesome, now how do I display the extracted text

Awesome, now how do I display the extracted text?

Regex.Replace(CurrentMail.Body,β€œ<[^>]*>” ,β€œβ€)

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