unable to get hyperlink in outlook using flow

pilli vinya
Tera Contributor

Hi Team,

 

could you please help me on this. iam creating a change bridge line.

but with href is also not able to get.

here is the script in flow

var content = {
contentType: "HTML",
content:
"<html><body>" +
"<p><b>Change Number:</b> " + fd_data.trigger.current.number + "</p>" +
"<p><b>Short Description:</b> " + fd_data.trigger.current.short_description + "</p>" +
"<p><b>Planned Start Date:</b> " + fd_data.trigger.current.start_date + "</p>" +
"<p><b>Planned End Date:</b> " + fd_data.trigger.current.end_date + "</p>" +
"</body></html>"
};

return content;

2 REPLIES 2

Lakshmi888888
Tera Expert
In ServiceNow HTML content, you need to wrap the change number in an <a> tag and construct the record URL.Example below:
 
var content = {
contentType: "HTML",
content:
"<html><body>" +
"<p><b>Change Number:</b> " +
"change_request.do?sys_id=" +
fd_data.trigger.current.sys_id + "'>" +
fd_data.trigger.current.number +
"</a></p>" +
 
"<p><b>Short Description:</b> " +
fd_data.trigger.current.short_description + "</p>" +
 
"<p><b>Planned Start Date:</b> " +
fd_data.trigger.current.start_date + "</p>" +
 
"<p><b>Planned End Date:</b> " +
fd_data.trigger.current.end_date + "</p>" +
 
"</body></html>"
};
 
return content;

Please mark this response as Helpful or Correct if it helped.

Ankur Bawiskar
Tera Patron

@pilli vinya 

where in flow you are using this?

share some screenshots

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader