Is the way to email users a link to the attestation they need to complete.

Roger Grim
Tera Contributor

We are doing control testing and need users to complete assigned attestations. The email that goes out when the attestations are assigned does not include the attestation record number. Also, without spending more money on licensing these control owners cannot access “my attestations” in ServiceNow. The attestations do not show up under “my tasks” either.

So how can we email a link to the control owners to take an attestation for a particular control.

We are on Vancouver.
Thank you,
Roger

2 REPLIES 2

Connor Levien
ServiceNow Employee
ServiceNow Employee

hey @Roger Grim ,

 

You can update your email notification with a mail script to include a deep link so users can simply click on the link and be taken to the attestation in the system. 

 

Please refer to the below documentation of how to configure record links in notifications

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/administer/notification/concept/c_...

Namrata Ghorpad
Mega Sage
Mega Sage

Hi @Roger Grim ,

Create Email Notification on Control table and in when to send section select updated and add the condition like state changes to Attest and Attestation is not empty.

Write email script to get the Attestation Record link.

Please check the below screenshots and script written in email script.

 

NamrataGhorpad_2-1720784751426.png

 

NamrataGhorpad_3-1720784771380.pngNamrataGhorpad_4-1720784822803.png

 

NamrataGhorpad_5-1720784934373.png

(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
    /* Optional EmailOutbound */
    email, /* Optional GlideRecord */ email_action,
    /* Optional GlideRecord */
    event) {

    // Add your code here
    var grAttest = new GlideRecord('asmt_assessment_instance');
    grAttest.addQuery('sn_grc_item', current.sys_id);
    grAttest.query();
    if (grAttest.next()) {
        gs.info("Attestation Number is " + grAttest.number);
        template.print("Attestation Number is " + grAttest.number+'<br/><br/>');
		template.print("Please Click on below Number to perform Attestation.<br/><br/>");
		template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=asmt_assessment_instance.do?sys_id=' +grAttest.sys_id+ '">' +grAttest.number+ '</a>');
    }

})(current, template, email, email_action, event);

 

Please mark my answer as correct and helpful if it helps to resolve your issue.

Regards,

Namrata