<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>post One daily email reminder that contains all approvals which can be approved or rejected in ServiceNow AI Platform articles</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/ta-p/2390219</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to view my article.&amp;nbsp; Searching the community you can see there is no shortage of posts on how to create Approval&amp;nbsp;Reminders. There are different ways they can be send out using like a scheduled job, the workflow engine and the great new Flow Designer.&amp;nbsp; One I have used in the past&amp;nbsp; is&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/124874"&gt;@marcguy&lt;/a&gt;'s answer in&amp;nbsp;&lt;A title="Pending approval Reminder" href="https://www.servicenow.com/community/developer-forum/pending-approval-reminder/m-p/1693343" target="_blank" rel="noopener"&gt;this thread.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I always had was the number of emails generated to an approver with outstanding approvals.&amp;nbsp; Every approval required its own notification so when you replied '&lt;FONT color="#339966"&gt;Approve&lt;/FONT&gt;' or '&lt;FONT color="#FF0000"&gt;Reject&lt;/FONT&gt;' the proper approval would be updated.&amp;nbsp; So every morning an executive or director will log in and check their email and if they did not keep up on their approvals (or a delegate) they would have multiple email reminders.&amp;nbsp; This article will focus on a solution that builds&amp;nbsp;&lt;STRONG&gt;one&lt;/STRONG&gt; email that contains all of the users outstanding approvals and will allow them to respond '&lt;FONT color="#339966"&gt;Approve&lt;/FONT&gt;' or '&lt;FONT color="#FF0000"&gt;Reject&lt;/FONT&gt;' on each approval that is contained in one email message.&amp;nbsp; &amp;nbsp;This is done by querying the sys_watermark table for the message in the notification email script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you currently have a scheduled job or flow you may just need to edit your email notification script.&amp;nbsp; If not navigate to System Definition -&amp;gt;Scheduled Jobs&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_0-1669061671066.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219098i95A58B907285C990/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_0-1669061671066.png" alt="DavidWhaley_0-1669061671066.png" /&gt;&lt;/span&gt;&lt;P&gt;Click the New button select Automatically run a script of your choosing&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_1-1669061909644.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219100i10C36A86017FF504/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_1-1669061909644.png" alt="DavidWhaley_1-1669061909644.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-template-content-zone"&gt;&lt;SPAN&gt;Give your new scheduled script job a name, select the frequency it will run and a time.&amp;nbsp; If you would like for your reminders to run only on weekdays enter in the following script in the Condition script editor field.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function(){
	//run on weekdays only
	var day = new Date().getDay();
	return (day != 0 &amp;amp;&amp;amp; day !=6);
})();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Run this script field we will need to query all &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;unique&amp;nbsp;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;users that have outstanding approvals.&amp;nbsp; We can do that by entering in the following script.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var arrUtil = new ArrayUtil();
var answer = [];
var app = new GlideRecord('sysapproval_approver');
	app.addQuery('state','requested');
	app.orderBy('approver');
	app.query();
while(app.next()){
	if (arrUtil.indexOf(answer, app.approver)==-1) {
		answer.push(app.approver.getValue());
	}
}
for (var i = 0; i &amp;lt; answer.length; i++) {
	gs.eventQueue('open.approval.reminders', app, answer[i]);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This queries all approvals with a State of Requested, gets the unique approver user and creates an event log entry named open.approval.reminders with the sys id of the approval and user.&lt;/P&gt;&lt;P&gt;Your scheduled job should look something like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_2-1669062551569.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219101iBC28A88E0B05EF4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_2-1669062551569.png" alt="DavidWhaley_2-1669062551569.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Event Registry create a record and name it open.approval.reminders&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_3-1669062727871.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219103iFD1BEC92E429E24C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_3-1669062727871.png" alt="DavidWhaley_3-1669062727871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once the scheduled job runs you should see multiple entries in the event log with the name you specified and in Parm1 you will see sys_id's from the sys_user table (the approver reference field in the sysapproval_approver record)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_2-1669064210336.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219113i9143193A58DEB0FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_2-1669064210336.png" alt="DavidWhaley_2-1669064210336.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Creating the notification email script.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;&lt;STRONG&gt;Filter on 'notification email' and select 'Notification Email Scripts' to create a new mail script&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_0-1669063397744.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219107i51C135DD209773AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_0-1669063397744.png" alt="DavidWhaley_0-1669063397744.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Give your email script a name.&amp;nbsp; I name mine the same as my event record in the registry 'open.approval.reminders' and in the script enter in the first two lines,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;baseUrl = gs.getProperty("glide.servlet.uri") + 'YOURPORTALNAME?sysparm_content_url=';
mailto = 'mailto:' + gs.getProperty("glide.email.user");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace YOURPORTALNAME with the name of your instance's service portal (this could be sp).&amp;nbsp; We will use these 2 variables further in our script&lt;/P&gt;&lt;P&gt;Then we will need to get the Requested Items for the approvals using the part of the mail script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Get Requested Items needing approval
var app = new GlideRecord('sysapproval_approver');
	app.addQuery('state','requested');
	app.addQuery('approver', event.parm1);
	app.addQuery('sysapproval.sys_class_name','sc_req_item');
	app.query();

while(app.next()){
		var ritm = new GlideRecord('sc_req_item');
			ritm.get(app.sysapproval);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now let's write this data to an html table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Request Header Short Description and RITM
	template.print('&amp;lt;table style="border-left: 4px solid #7bb342; width:100%; border-collapse:collapse;"&amp;gt;');
	template.print('&amp;lt;tbody&amp;gt;');
	template.print('&amp;lt;tr style="background-color: #7bb342;"&amp;gt;');
	template.print('&amp;lt;td style="text-align: left;"&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Montserrat, sans-serif; color: #ffffff;"&amp;gt;&amp;lt;strong&amp;gt;' + ritm.short_description + '&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;td style="text-align: right;"&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Montserrat, sans-serif;"&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;a style="color: #ffffff;" href=' + baseUrl + ritm.getLink() + '&amp;gt;' + app.getDisplayValue('sysapproval') + '&amp;lt;/a&amp;gt;' + '&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;/tr&amp;gt;');

//Request Description	
	template.print('&amp;lt;tr&amp;gt;');
	template.print('&amp;lt;td colspan="2"; style="text-align: left; margin: 3px; font-size: 10pt; font-family: Montserrat, sans-serif; "&amp;gt;' + ritm.description + '&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;/tr&amp;gt;');
	template.print('&amp;lt;/tbody&amp;gt;');
	template.print('&amp;lt;/table&amp;gt;');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was the best way I could get this into a table in the format I wanted.&amp;nbsp; &amp;nbsp;If anyone has a better way to do this or even has a better-looking result, please comment below with a better solution.&amp;nbsp; This will create the following table in the body of your email.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_5-1669064988459.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219119i5282BCEC11ADC490/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_5-1669064988459.png" alt="DavidWhaley_5-1669064988459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The top row is the RITM short description and also includes a link to the RITM.&amp;nbsp; I chose green for Requested Items but feel free to use any colors or fonts you would like.&amp;nbsp; The script will get all approvals for the user so you can have more that 1 table in your email like this depending on how many requested approvals there are for the user.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_6-1669065438161.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219120iF7DBE12312AE9FAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_6-1669065438161.png" alt="DavidWhaley_6-1669065438161.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, we need to build the links to accept or reject.&amp;nbsp; In order for the approval or rejection to go the proper approval we will need to query the sys_watermark table for particular approvals sys id in the source id field.&amp;nbsp; When the approval email is received ServiceNow will know which approval it applies to because we will be getting the Ref:MSG number from this record.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Example of a sys_watermark record&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_7-1669065906252.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219121iC0E7595ED387F81A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_7-1669065906252.png" alt="DavidWhaley_7-1669065906252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To get this we will add the following to our mail script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Approval or Reject Links
	var msg = new GlideRecord('sys_watermark');
		msg.addEncodedQuery('source_id='+ app.sys_id);
		msg.query();
	var number = '';
	if(msg.next()) {
		number = msg.number;
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to build the Approve or Reject reply links for the ritm approval.&amp;nbsp; Again, as earlier, this was the way I was able to get it to work any thoughts on improvement are welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var approve = mailto + '?subject=RE:%20' + app.getDisplayValue('sysapproval') + '%20-%20approve&amp;amp;body=%0D%0A%0D%0A%0D%0ARef%3A' + number;
	var reject = mailto + '?subject=RE:%20' + app.getDisplayValue('sysapproval') + '%20-%20reject&amp;amp;body=%0D%0A%0D%0ARef%3A' + number;
	
	template.print('&amp;lt;table style="border-left: 4px solid #7bb342; width:100%; border-collapse:collapse;"&amp;gt;');
	template.print('&amp;lt;tbody&amp;gt;');
	template.print('&amp;lt;tr&amp;gt;');
	template.print('&amp;lt;td style="border-radius: 5px; background-clip: padding-box; background-color:#7bb342; text-align: center; margin: 3px; width: 10%;";&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Montserrat, sans-serif;"&amp;gt;&amp;lt;a style="color: #ffffff;" href=' + approve + '&amp;gt;&amp;lt;strong&amp;gt;' + "Approve" + '&amp;lt;/a&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;td style="background-color:#ffffff; width: 80%;"&amp;gt;&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;td style="border-radius: 5px; background-clip: padding-box; background-color:#df2027; text-align: center; margin: 3px; width: 10%;"&amp;gt;&amp;lt;span style="font-size: 10pt; font-family: Montserrat, sans-serif;"&amp;gt;&amp;lt;a style="color: #ffffff;" href=' + reject + '&amp;gt;&amp;lt;strong&amp;gt;' + "Reject" + '&amp;lt;/a&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;/tr&amp;gt;');
	
	template.print('&amp;lt;/tbody&amp;gt;');
	template.print('&amp;lt;/table&amp;gt;');
	template.print('&amp;lt;br&amp;gt;');
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is all you would need for requested items.&amp;nbsp; You can add Changes, Knowledge articles and any other approvals you may have and append to the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included my email script which includes Change Requests as well.&amp;nbsp; Change requests are blue and will also be included in the email but the format is a bit different because we are getting more fields from the change record.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_0-1669082206333.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219152iD5C83DB52BC42C48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_0-1669082206333.png" alt="DavidWhaley_0-1669082206333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will also need to add the email script to a notification.&amp;nbsp; Create a new email notification and for 'Send when' choose Event is fired and then select your event name you created earlier.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_1-1669068505725.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219132i157E0DED740702F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_1-1669068505725.png" alt="DavidWhaley_1-1669068505725.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the who will receive tab check 'Event parm 1 contains recipient' and 'Send to event creator'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_4-1669068853238.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219137iA889B24A1AB867E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_4-1669068853238.png" alt="DavidWhaley_4-1669068853238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally, on the What it will contain make sure you have&amp;nbsp;&lt;!--       x-tinymce/html-mce_88905493821669068386936       --&gt;${mail_script:open.approval.reminders} in the message HTML to add your script to the email notification&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_3-1669068760097.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219134i13D9A720475EE7D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_3-1669068760097.png" alt="DavidWhaley_3-1669068760097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once the links are clicked in their default email client the mail script we created earlier will populate the Subject and add the Ref:MSG# in the body of the email&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWhaley_0-1669068170686.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219127i4BFEE85328E53676/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWhaley_0-1669068170686.png" alt="DavidWhaley_0-1669068170686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All the user has to do now is click send to approve the RITM.&lt;/P&gt;&lt;P&gt;Let me know if you have any questions in the comments below.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Whaley&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 02:39:34 GMT</pubDate>
    <dc:creator>David Whaley</dc:creator>
    <dc:date>2022-11-22T02:39:34Z</dc:date>
    <item>
      <title>One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/ta-p/2390219</link>
      <description>&lt;P&gt;Approve all outstanding approvals from ONE email notification.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 02:39:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/ta-p/2390219</guid>
      <dc:creator>David Whaley</dc:creator>
      <dc:date>2022-11-22T02:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2441906#M3398</link>
      <description>&lt;P&gt;Thanks for posting this &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/16459"&gt;@David Whaley&lt;/a&gt; . This is just what I needed as some of my users had quite a few outstanding approvals. So collate into one email is a great step forward.&lt;/P&gt;&lt;P&gt;One thing I have noticed though is that once the notification is sent, it is attaching all of the notifications to just one record in the target field:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M_iA_0-1673544544252.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/232381iBFD574068C5685ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M_iA_0-1673544544252.png" alt="M_iA_0-1673544544252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you go onto that target record, it has every notification that was sent out regardless whether its related or not.&lt;/P&gt;&lt;P&gt;Any ideas? Did you encounter this?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:30:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2441906#M3398</guid>
      <dc:creator>M_iA</dc:creator>
      <dc:date>2023-01-12T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2441977#M3399</link>
      <description>&lt;P&gt;Yes, that is an issue I have and currently I have not found a resolution.&amp;nbsp; I have tried to update it with query from the sys_watermark table but as of yet I have not been successful.&amp;nbsp; The behavior is less than optimal but doesn't affect the approvals.&amp;nbsp; We determined it was acceptable and our users preferred to have these in one email rather than our approvers getting multiple emails.&amp;nbsp; I have not had any issues with this behavior.&amp;nbsp; When I have a resolution I will be sure to post it.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:37:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2441977#M3399</guid>
      <dc:creator>David Whaley</dc:creator>
      <dc:date>2023-01-12T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2486037#M3484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/16459"&gt;@David Whaley&lt;/a&gt;,&lt;BR /&gt;I'm looking to implement this solution, but for Knowledge Articles. It seems like I should just have to edit the sc_req_item to kb_knowledge if I'm not mistaken, correct?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 15:01:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2486037#M3484</guid>
      <dc:creator>Joakim St_ckel</dc:creator>
      <dc:date>2023-02-22T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2490836#M3495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/200291"&gt;@Joakim St_ckel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct, in the script where you get your approvals for the requested items if you edit it with kb_knowledge.&amp;nbsp; I did the same thing with Change Requests and just copied the section for requested items to reflect the&amp;nbsp;&lt;SPAN&gt;change_request table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 22:16:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2490836#M3495</guid>
      <dc:creator>David Whaley</dc:creator>
      <dc:date>2023-02-27T22:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2733213#M3911</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/170559"&gt;@M_iA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to resolve the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 08:59:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/2733213#M3911</guid>
      <dc:creator>jparman</dc:creator>
      <dc:date>2023-11-15T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3030250#M4390</link>
      <description>&lt;P&gt;Hi David, thank you for this.&amp;nbsp; i am testing and even though i have&amp;nbsp;&lt;SPAN&gt;Hello ${approver}, in the email notification, all the emails are getting addressed to Hello Zach&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hello approver.png" style="width: 860px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/382218iA93B6DA34D6D9F57/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="hello approver.png" alt="hello approver.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hello zach.png" style="width: 689px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/382219i922D819A5C0F1862/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="hello zach.png" alt="hello zach.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 18:53:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3030250#M4390</guid>
      <dc:creator>DianaBTX</dc:creator>
      <dc:date>2024-08-28T18:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3041142#M4409</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/16459"&gt;@David Whaley&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for such a wonderful detailed post!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:53:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3041142#M4409</guid>
      <dc:creator>jacobspacek</dc:creator>
      <dc:date>2024-09-10T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3049205#M4417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/703121"&gt;@DianaBTX&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the late response.&amp;nbsp; You would need to add a mail script in place of the salutation instead of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello ${approver},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you would have something like&amp;nbsp;${mail_script:open.approval.reminders.salutation}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The email notification script,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name of the email notification script:&amp;nbsp;&amp;nbsp;open.approval.reminders.salutation&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mailto = 'mailto:' + gs.getProperty("glide.email.user");

//Get Requested Items needing approval
var app = new GlideRecord('sysapproval_approver');
	app.addQuery('state','requested');
	app.addQuery('approver', event.parm1);
	app.addQuery('sysapproval.sys_class_name','sc_req_item');
	app.setLimit(1);
	app.query();

while(app.next()){
		var ritm = new GlideRecord('sc_req_item');
			ritm.get(app.sysapproval);

//Salutation
	template.print('&amp;lt;table style="width:100%; border-collapse:collapse;"&amp;gt;');
	template.print('&amp;lt;tbody&amp;gt;');
	template.print('&amp;lt;tr&amp;gt;');
	template.print('&amp;lt;td colspan="2"; style="text-align: left; margin: 3px; font-size: 10pt; font-family: Montserrat, sans-serif; "&amp;gt;Hello: ' + app.approver.getDisplayValue() + '&amp;lt;/td&amp;gt;');
	template.print('&amp;lt;/tr&amp;gt;');
	template.print('&amp;lt;/tbody&amp;gt;');
	template.print('&amp;lt;/table&amp;gt;');

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 19:32:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3049205#M4417</guid>
      <dc:creator>David Whaley</dc:creator>
      <dc:date>2024-09-18T19:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3050080#M4420</link>
      <description>&lt;P&gt;Thanks David,&amp;nbsp; my boss wants to go a different direction now&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 13:37:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3050080#M4420</guid>
      <dc:creator>DianaBTX</dc:creator>
      <dc:date>2024-09-19T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3052060#M4421</link>
      <description>&lt;P&gt;This is super useful David on such an important use case!!!&lt;/P&gt;
&lt;P&gt;Bookmarked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Ravi Chandra&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2024 12:56:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3052060#M4421</guid>
      <dc:creator>Ravi Chandra_K</dc:creator>
      <dc:date>2024-09-21T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: One daily email reminder that contains all approvals which can be approved or rejected</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3508967#M5025</link>
      <description>&lt;P&gt;This is awesome, thank you for sharing!!&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/16459"&gt;@David Whaley&lt;/a&gt;&amp;nbsp;were you able to figure out a solution for the following behavior:&amp;nbsp; "&lt;SPAN&gt;once the notification is sent, it is attaching all of the notifications to just one record in the target field"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 22:34:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/one-daily-email-reminder-that-contains-all-approvals-which-can/tac-p/3508967#M5025</guid>
      <dc:creator>luv2learn702</dc:creator>
      <dc:date>2026-03-16T22:34:45Z</dc:date>
    </item>
  </channel>
</rss>

