How to create an email with the hyperlink that updates the record

shaik_irfan
Tera Guru

Hi,

 

I wanted to create a notification with hyperlinks as interested and not interested, when the user clicks interested it should update the vairbale in the catalog task same when the user clicks not interested.

 

Can anyone please help me how to acheive this?

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

@shaik.irfan 

Please find the suggestions below from me on how you should approach this:

1) Create a Notification and within this Notification you need to call a Email template which will display links as below:

Interested and Not Interested.

How you will create email template, you can refer to below link or refer to how OOB approval and reject functionality works in an Approval email. Sharing the links below:

Example: Mail to Approval OOB you can refer as per link below:

https://instance.service-now.com/nav_to.do?uri=sysevent_email_template.do?sys_id=c2dee61cc611227601f80c0ea98f9a3f



Replace "instance' with your instance name.
https://docs.servicenow.com/bundle/paris-servicenow-platform/page/integrate/email-integrations/reference/r_ConstructAnEmailMessage.html

 

So above link will help you in constructing the links as you need.

Now the remaining bit of your requirement which is once user clicks it should update the record.

For this you need to create a Inbound action on your table and then update the record variable as you need.

Again refer to how OOB approve and reject functionality works OOB . It is similar to what you need.

https://community.servicenow.com/community?id=community_question&sys_id=29990c981ba3b380ada243f6fe4bcbea

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

You will have to configure email script to configure buttons for interested, not interested functions.

Take a look into below blog for sample approve, reject button email scripts

 

https://community.servicenow.com/community?id=community_blog&sys_id=8080e8dc1babb380d01143f6fe4bcb0e

 

 

You can open servicenow record on click of buttons using $URI parameters.

 

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/notification/concept/c_LinkToRelatedRecords.html

 

Regards,

Sachin

shloke04
Kilo Patron

@shaik.irfan 

Please find the suggestions below from me on how you should approach this:

1) Create a Notification and within this Notification you need to call a Email template which will display links as below:

Interested and Not Interested.

How you will create email template, you can refer to below link or refer to how OOB approval and reject functionality works in an Approval email. Sharing the links below:

Example: Mail to Approval OOB you can refer as per link below:

https://instance.service-now.com/nav_to.do?uri=sysevent_email_template.do?sys_id=c2dee61cc611227601f80c0ea98f9a3f



Replace "instance' with your instance name.
https://docs.servicenow.com/bundle/paris-servicenow-platform/page/integrate/email-integrations/reference/r_ConstructAnEmailMessage.html

 

So above link will help you in constructing the links as you need.

Now the remaining bit of your requirement which is once user clicks it should update the record.

For this you need to create a Inbound action on your table and then update the record variable as you need.

Again refer to how OOB approve and reject functionality works OOB . It is similar to what you need.

https://community.servicenow.com/community?id=community_question&sys_id=29990c981ba3b380ada243f6fe4bcbea

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

shloke04
Kilo Patron

@shaik.irfan 

Try the solution suggested and let me know if you have a follow up query once you have tried.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke