Highlighted
Trusted Contributor.
Trusted Contributor.
374 views

Url to be formed in HTML email template

Dear All,

I have a requirement to send url in html email template.

in the URL, I need to send incident id and customer email ID.

I formed an URL with href tag as shown below.

 

<a href="http://localhost:8787/HPSM_Feedback_17/?name=$RECORD.number&mailid=$RECORD.vil_adjacentnode"> Please Provide Feedback or repoen ticket <\a>

Since url is in double codes variable is getting passed as comment and not getting recognized.

Any advises.

Thanks,

VND.

 

 

0 Likes
1 Reply
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

We did something similar.  We wanted to pass in the Incident number, the assignment group, the assignee, and who opened it. You need to build it in the Expressions tab.  I added this at the very bottom of the expresstions tab.  Do it piece by piece and append each variable you want:

var survey;
survey="http://websitename.customersurvey.aspx?query=";
survey+=($RECORD.number+",");
survey+=($RECORD.assignment+",");
survey+=($RECORD.assignee_name+",");
survey+=($RECORD.opened_by);

Then in the actual HTML you will call the link like this:

<a href="{survey}">Take this quick survey</a>

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.