Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to add hyperlink to the flow designer script

Renu9
Tera Contributor

Hi All,

I am having a flow designer where I am using Send Email action where the body text contains 2 hyperlinks . But I dont see the option there. Please let me know how I can add that

 

Follow 'KB0012345 - Add Calendar ' for more details.

If any issues, please open an Incident.

 

Here KB0012345 and Open an incident should be hyperlinks.

Please let me know how I can add that.

1 ACCEPTED SOLUTION

Not applicable

 

 

 

var body = "Please note that you have been granted with access to " + fd_data._1__get_catalog_variables.requested_for.name + "'s calendar" + "<br><br>";

body += 'Follow <a href="https://dev.service-now.com/kb_view.do?sysparm_article=KB00412345">KB0012345 - Add Calendar</a>. ';
body += 'If any issues, please open an Incident.';

return body;

 

 

 This avoids syntax errors by using single quotes (') for HTML attribute values inside the JavaScript string.



------------------------------------------------------------------------------------------

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

View solution in original post

4 REPLIES 4

Not applicable

To add hyperlinks in a Flow Designer Send Email action, include HTML directly in the email body:


Follow

<a href="https://your-instance.service-now.com/kb_view.do?sysparm_article=KB0012345">KB0012345 - Add Calendar</a>

for more details.

If any issues, please

<a href="https://your-instance.service-now.com/incident.do?sys_id=new">open an Incident</a>

 

Replace the URLs with the appropriate links for your instance.

Hi @Community Alums 

It is throwing an error at Send email action as below. Please suggest

 

var body = "Please note that you have been granted with access to " +fd_data._1__get_catalog_variables.requested_for.name + " 's  calendar" + "<br><br>";

body+= "Follow <a href="https://dev.service-now.com/kb_view.do?sysparm_article=KB00412345">KB0012345 - Add Calendar</a>";
body+="If any issues, please open an Incident."
return body;


The error is "Message:Error: missing ; before statement (Process Automation.e5aa2f75470786d0429fd488536d4344; line 4), errorCode:1"

Not applicable

 

 

 

var body = "Please note that you have been granted with access to " + fd_data._1__get_catalog_variables.requested_for.name + "'s calendar" + "<br><br>";

body += 'Follow <a href="https://dev.service-now.com/kb_view.do?sysparm_article=KB00412345">KB0012345 - Add Calendar</a>. ';
body += 'If any issues, please open an Incident.';

return body;

 

 

 This avoids syntax errors by using single quotes (') for HTML attribute values inside the JavaScript string.



------------------------------------------------------------------------------------------

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

Hi @Community Alums 

Now, The error is lost. 

Here how can I keep dynamically the dev, test, prod URL. 

https://dev.service-now.com/kb_view.do?sysparm_article=KB0012345

 

Is there any way like that?