How to add URL in the body of the notification to open catalog item

chiranjeevi Kup
Tera Expert

Hi All,

I configured notification in the workflow and now I am looking to add URL of the order guide in the body of the email to raise request.

can someone help with the approach to achieve this requirement.

1 ACCEPTED SOLUTION

chiranjeevi Kup
Tera Expert

Hi All,

 

I found the way to make URL form the workflow notification activity by giving the URL to be redirected in the content of the email as below

 

< a href="">form</a>

for eg :- < a href="https://www.servicenow.com/community/developer-forum/how-to-add-url-in-the-body-of-the-notification-...">form</a>

View solution in original post

11 REPLIES 11

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @chiranjeevi Kup 

Greetings!

You will have to write a email script for that

example:

<mail_script>

var RequestLink = '<a '/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=<catalogItemSysId>'>here</a>';

template.print("Click " + RequestLink + " to view raise the request.");

template.print("<hr/>");

}

</mail_script>

the better way would be generating event from workflow rather than notification. form event, you can configure click able links in notification easily like this 

find_real_file (5).png

You can also refer below threads:

https://www.servicenow.com/community/developer-forum/how-to-create-a-link-in-a-workflow-notification...

https://www.servicenow.com/community/developer-forum/add-hyperlink-to-workflow-notification/m-p/2122...

 

Help others to find a correct solution by marking the appropriate response as correct answer and helpful!!

 

Kind Regards,

Ravi Chandra.

APV Babu 06-11
Tera Contributor

In the Notification Body you can add  "${URI_REF}"  this

 

Regards,

APV Babu

@APV Babu 06-11  I tried that but it is showing the link to redirect for RITM from which this workflow transitioning to

chiranjeevi Kup
Tera Expert

Hi All,

 

I found the way to make URL form the workflow notification activity by giving the URL to be redirected in the content of the email as below

 

< a href="">form</a>

for eg :- < a href="https://www.servicenow.com/community/developer-forum/how-to-add-url-in-the-body-of-the-notification-...">form</a>