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;

10 REPLIES 10

Lakshmi888888
Kilo Guru
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;

@Lakshmi888888  by using above script Change Number: change_request.do?sys_id=sysid'>number it is displaying like this

That was actually an example. Could you please share your latest code?

Ankur Bawiskar
Tera Patron

@pilli vinya 

where in flow you are using this?

share some screenshots