Link to redirect to approve and reject form in Change Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 05:19 AM
In Notification, how to put link of approve and reject form in the change request so that the person can click on the approve link in the email and will redirect to Approval form or list to approve the change request. Can anyone help me in this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 05:39 AM
Hi @Sakshi Lambat ,
Please check below community post to achieve your requirements.
https://www.servicenow.com/community/itsm-blog/approve-reject-button-in-approval-notification/ba-p/2...
Thanks,
Pratik Malviya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 05:48 AM
You'll need to write the html code to point to the approval record URL. In the mail script you should be able to access the approval record itself, so it's just a matter of opening an approval record in the system, copying the URL, and then creating the url, replacing the sys_id of the specific approval you opened with the dynamic sys_id from the originating approval. You should also make sure that the link works in all environments, there is a property called glide.servlet.uri that contains the current environment's main url. You'll want to us that. So something like:
var mainUrl = gs.getProperty('glide.servlet.uri');
var approvalUrl = mainUrl + 'now/nav/ui/classic/params/target/sysapproval_approver.do%3F' + current.sys_id;