How to ExtractURL links we receive in Outlook inbox

Hi All,

i want to extract each links which we receive from outlook inbox.

Thanks & regards,

Hi, @niranjan.kummara

In the Read Mail activity, mark HTML Body as True then use regex to get all links in mail body.

You can use this regex for it in assign acitvity:

Links = System.Text.RegularExpressions.Regex.Matches(EMAILVARIABLE.Body, “(http|ftp|https)://([\w_-]+(?:(?:.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])”).OfType(Of System.Text.RegularExpressions.Match).Select(Function(m) m.Value.ToString).ToArray

Link is a array variable of String Type

@rikulsilva thank you, im new to UiPath, can you help me with screenshot or sample workflow, If any reference videos would be great help.

@niranjan.kummara Share sample email body which contains link.

@niranjan.kummara, Sure.

Can you explain a little more about your need? Things like get mail direct from the servers, get mail from Outlook Client installed in machine etc

I would help more with this kind information cause there more than one way to do that

Some references:

Some Get Mails Activities don’t have isBodyHTML in Activity Properties Panel, ok? but you still can retrieve body as HTML use mail_variable.BodyAsHtml