Hyperlink in Outlook email

Hi there,
I have an email to send using Outlook desktop app.
My body email is in HTML:

<P>Hello,</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="https://www.uipath.com"><IMG class=runtime-img0 style="MARGIN: 0px" alt="" src="data:image/png;base64," width=272 height=50></A></P>

It works fine, when I click on the image, it goes to UiPath website.
Now, I want to have dynamic link that is stored in a variable: campaignLink and I want to use it in my HTML but it doesn’t work.

<P>Hello,</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="+campaignLink+"><IMG class=runtime-img0 style="MARGIN: 0px" alt="" src="data:image/png;base64," width=272 height=50></A></P>

I think it is a matter of key entry.

Help would be appreciated

David

@David_Leroy,

Pass it like this:

<P>Hello,</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="""+campaignLink+"""><IMG class=runtime-img0 style="MARGIN: 0px" alt="" src="data:image/png;base64," width=272 height=50></A></P>

@ashokkarale

Sorry for the delay, I was away of business.

I enter this in the HTML code

<P>Hello</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="""+campaignLink+"""></A><IMG class=runtime-img1 style="MARGIN: 0px" alt="" src="data:image/png;base64," width=500 height=80></P>

It still doesn’t work.
When I come back in my HTML code, I’ve got:

<P>Hello</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="" ?+campaignLink+???></A><IMG class=runtime-img1 style="MARGIN: 0px" alt="" src="data:image/png;base64," width=500 height=80></P>

I don’t understand why.

Any idea?

Thank you
David

Hi @David_Leroy,

You can try using the following code snippet as a solution:

<P>Hello,</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="+campaignLink+"><IMG Class=runtime-img0 style=""MARGIN: 0px"" alt="""" src=""data:image/png;base64,"" width=272 height=50></A></P>

This code assigns the HTML content to a string variable, making it ready for use in your email body. Just replace campaignLink with your actual link variable.

Let me know if this helps!

Regards
Furkan

@David_Leroy,

Try this way,

Use this in assign activity.

String.Format("<P>Hello</P>
<P>&nbsp;</P>
<P>See below the link</P>
<P>&nbsp;</P>
<P><A href="""{0}"""></A><IMG class=runtime-img1 style="MARGIN: 0px" alt="" src="data:image/png;base64," width=500 height=80></P>", campaignLink)