<?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>question Re: SC_REQ_ITEM Approval Emails in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068272#M24661</link>
    <description>&lt;P&gt;Wow I feel silly. &amp;nbsp; Thanks Michael. &amp;nbsp; You're my hero for the day.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Aug 2015 19:16:14 GMT</pubDate>
    <dc:creator>jasonr</dc:creator>
    <dc:date>2015-08-20T19:16:14Z</dc:date>
    <item>
      <title>SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068258#M24647</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am struggling to get an approval email to include the options for the catalog request items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found: &lt;A href="http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#Summary_of_Requested_Items" title="http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#Summary_of_Requested_Items"&gt;http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#Summary_of_Requested_Items&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1439270875852370" jivemacro_uid="_1439270875852370"&gt;
&lt;P&gt;&amp;lt;mail_script&amp;gt;&lt;/P&gt;
&lt;P&gt;template.print("Summary of Requested items:\n"); &amp;nbsp; &lt;/P&gt;
&lt;P&gt;var gr = new GlideRecord("sc_req_item");&lt;/P&gt;
&lt;P&gt;gr.addQuery("request", current.sysapproval);&lt;/P&gt;
&lt;P&gt;gr.query();&lt;/P&gt;
&lt;P&gt;while(gr.next()) {&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; var nicePrice = gr.price.toString();&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; if (nicePrice != ) {&lt;/P&gt;
&lt;P&gt; &amp;nbsp; nicePrice = parseFloat(nicePrice);&lt;/P&gt;
&lt;P&gt; &amp;nbsp; nicePrice = nicePrice.toFixed(2);&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt; &amp;nbsp; template.print(gr.number + ": " + gr.quantity + " X " + gr.cat_item.getDisplayValue() + " at $" + nicePrice + " each \n");&lt;/P&gt;
&lt;P&gt; &amp;nbsp; template.print(" Options:\n");&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; for (key in gr.variables) {&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; var v = gr.variables[key];&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; if(v.getGlideObject().getQuestion().getLabel() != '') {&lt;/P&gt;
&lt;P&gt; &amp;nbsp; template.space(4);&lt;/P&gt;
&lt;P&gt; &amp;nbsp; template.print(' ' + &amp;nbsp; v.getGlideObject().getQuestion().getLabel() + " = " + v.getDisplayValue() + "\n"); &amp;nbsp; &lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;lt;/mail_script&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to acctually implement this it is not showing the options like it should&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;All I get in my email is: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Summary of Requested items: &lt;/P&gt;&lt;P&gt;And no options for my RITM tasks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It should however look something like:&lt;/P&gt;&lt;P&gt;Summary of Requested item:&lt;/P&gt;&lt;P&gt;RITM0010114: 1 X &amp;nbsp; XXXXXX Account at $0.00 each &lt;/P&gt;&lt;P&gt;Details of this request:&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Requestor: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Employee's Name: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Job Title: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Contact Number (Ext.): &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Store Number: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Line Manager: C&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please select role: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nominated Printer: &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Authorisation: Yes&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Authorisation: Yes&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Departments required: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas of what is going wrong in my mail script?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 05:30:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068258#M24647</guid>
      <dc:creator>rob_blakey</dc:creator>
      <dc:date>2015-08-11T05:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068259#M24648</link>
      <description>&lt;P&gt;I hope you are writing the above script &lt;STRONG&gt;without&lt;/STRONG&gt; "&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;&amp;lt;mail_script&amp;gt; &lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;&amp;lt;/mail_script&amp;gt;&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; in a "Notification Email Script" and then calling it using "&lt;SPAN style="color: #333333; font-family: monospace; font-size: 14px;"&gt;&lt;STRONG&gt;${mail_script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #333333; font-family: monospace; font-size: 14px;"&gt;script name&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-family: monospace; font-size: 14px;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;" in your email body.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt;Create mail scripts in &lt;/SPAN&gt;&lt;STRONG style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt;System Policy &amp;gt; Email &amp;gt; Notification Email Script&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt; starting with the &lt;/SPAN&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Eureka_Release_Notes" style="color: #031da7; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;" title="Eureka Release Notes"&gt;Eureka release&lt;/A&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt;. Then add a &lt;/SPAN&gt;&lt;TT style="color: #333333; font-size: 14px;"&gt;${mail_script:&lt;EM&gt;script name&lt;/EM&gt;}&lt;/TT&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt; embedded script tag to the body of the &lt;/SPAN&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Email_Notifications" style="color: #031da7; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;" title="Email Notifications"&gt;email notification&lt;/A&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt; or &lt;/SPAN&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Email_Templates" style="color: #031da7; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;" title="Email Templates"&gt;template&lt;/A&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt;, replacing &lt;/SPAN&gt;&lt;TT style="color: #333333; font-size: 14px;"&gt;&lt;EM&gt;script name&lt;/EM&gt;&lt;/TT&gt;&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt; with the name of the script you created.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2015 05:47:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068259#M24648</guid>
      <dc:creator>Tanaji Patil</dc:creator>
      <dc:date>2015-08-11T05:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068260#M24649</link>
      <description>&lt;P&gt;Don't embed it directly into the Email Notification body. That won't work.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2015 05:53:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068260#M24649</guid>
      <dc:creator>Tanaji Patil</dc:creator>
      <dc:date>2015-08-11T05:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068261#M24650</link>
      <description>&lt;P&gt;hi Tanaji,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Yes i am using a mail script i just copied the code as it was from the site to explain. But this still isn't working and pulling the values from the RITM&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2015 22:28:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068261#M24650</guid>
      <dc:creator>rob_blakey</dc:creator>
      <dc:date>2015-08-11T22:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068262#M24651</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We did it slightly different and created a field called Order Details and then used the post from Jace to populate that field with all the details and in the correct order etc.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; color: #666666; background-color: #f6f6f6;"&gt;Jace Benson posted this and it is amazing. We use it for Catalog Approvals and to show the customer what they actually ordered without all the blank fields etc.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; color: #666666; background-color: #f6f6f6;"&gt;&lt;A title="" _jive_internal="true" data-containerid="2083" data-containertype="14" data-objectid="149636" data-objecttype="1" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=bdcebaa5db58dbc01dcaf3231f96197b" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Show Catalog Variables as if they were on the form&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Aug 2015 03:57:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068262#M24651</guid>
      <dc:creator>gbernie</dc:creator>
      <dc:date>2015-08-12T03:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068263#M24652</link>
      <description>&lt;P&gt;Rob, I have this working in my instance. &amp;nbsp; I basically cloned the code that worked with sc_requests and make it work with sc_req_items:&lt;/P&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Created 3 new event registrations: &lt;SPAN style="color: #343d47; font-family: Arial; font-size: 13px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;reqitem.approval.inserted, &lt;SPAN style="color: #343d47; font-family: Arial; font-size: 13px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;reqitem.approval.rejected, reqitem.approval.cancelled&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #343d47; font-style: normal; font-size: 13px; font-family: Arial; font-weight: normal;"&gt;Edited the out of the box business rule called "Approval Events (Task)" that runs on the sysapproval_approver to create one of the above events for approvals on sc_req_item&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Created 3 new email notifications that are called when the 3 above events are fired: Requested Item Approval Request, Requested Item Approval Rejected, Requested Item Approval Cancelled&lt;/LI&gt;&lt;LI&gt;Created email templates for each.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I assume you followed similar steps to mine. &amp;nbsp; Below is the code for the template that gets called on new approval requests. &amp;nbsp; I put this into the Email Template Message field, NOT HTML.&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14394140470665880" jivemacro_uid="_14394140470665880"&gt;
&lt;P&gt;Short Description: ${sysapproval.short_description}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Priority: ${sysapproval.priority}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Requested For: ${sysapproval.request.requested_for}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Requested By: ${sysapproval.request.opened_by}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Total Price: ${sysapproval.request.price}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;lt;mail_script&amp;gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; template.print("Summary of the Request:\n"); &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; var nicePrice = current.sysapproval.price.toString();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; if (nicePrice != '') {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nicePrice = parseFloat(nicePrice);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nicePrice = nicePrice.toFixed(2);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; template.print(current.sysapproval.number + ": &amp;nbsp; " + current.sysapproval.quantity + " X " + current.sysapproval.cat_item.getDisplayValue() + " at $" + nicePrice + " each \n");&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; template.print(" &amp;nbsp; &amp;nbsp; &amp;nbsp; Options:\n");&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; var keys = new Array();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; var set = new GlideappVariablePoolQuestionSet(); &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; set.setRequestID(current.sysapproval);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; set.load();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; var vs = set.getFlatQuestions();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; for (var i=0; i &amp;lt; vs.size(); i++) {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(vs.get(i).getLabel() != '') {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; template.space(4);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; template.print(' &amp;nbsp; &amp;nbsp; &amp;nbsp; ' + &amp;nbsp; vs.get(i).getLabel() + " = " + vs.get(i).getDisplayValue() + "\n"); &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;lt;/mail_script&amp;gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Comments:&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;${sysapproval.description}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;${mailto:mailto.approval}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;${mailto:mailto.rejection}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Click here to view Approval Request: ${URI}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Click here to view ${sysapproval.sys_class_name}: &amp;nbsp; ${sysapproval.URI}&lt;/P&gt;&lt;BR /&gt;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:14:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068263#M24652</guid>
      <dc:creator>Michael Ritchie</dc:creator>
      <dc:date>2015-08-12T21:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068264#M24653</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you so much! I am not too sure what is different between your code and mine however as soon as I turned your mailscript into a mailscipt it worked right away!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:52:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068264#M24653</guid>
      <dc:creator>rob_blakey</dc:creator>
      <dc:date>2015-08-12T21:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068265#M24654</link>
      <description>&lt;P&gt;Awesome glad to hear my example code helped. &amp;nbsp; I will admit my code was created prior to Fuji and mail scripts so I hadn't gone down that route yet.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:55:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068265#M24654</guid>
      <dc:creator>Michael Ritchie</dc:creator>
      <dc:date>2015-08-12T21:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068266#M24655</link>
      <description>&lt;P&gt;Yeah, I am not used to mail scripts either, but apparently servicenow doesn't like you not using them in some instances so its just easier to create a mail script. But either way, it worked, and I am very thankful &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Aug 2015 22:08:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068266#M24655</guid>
      <dc:creator>rob_blakey</dc:creator>
      <dc:date>2015-08-12T22:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068267#M24656</link>
      <description>&lt;P&gt;Hi Rob_blakey,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Create the Email template for Req_item table and use the below sample message format, &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Short Description: ${short_description}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Click here to view item: ${URI_REF}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Severity: ${severity}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Priority: ${priority}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Category: ${category}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Comments:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;${comments}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;"&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Aug 2015 05:19:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068267#M24656</guid>
      <dc:creator>pandyan1</dc:creator>
      <dc:date>2015-08-13T05:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068268#M24657</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;How could I revise your script to only pull one specific variable into an email rather than all of them?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2015 18:37:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068268#M24657</guid>
      <dc:creator>jasonr</dc:creator>
      <dc:date>2015-08-20T18:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068269#M24658</link>
      <description>&lt;P&gt;Jason,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;To pull a specific field you should be able to just do it inline using something like Field Label: ${current.variables.my_field}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;-Chris&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2015 18:57:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068269#M24658</guid>
      <dc:creator>cwilkerbb</dc:creator>
      <dc:date>2015-08-20T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068270#M24659</link>
      <description>&lt;P&gt;It's a sysapproval email, and it wont pull like that unfortunately. &amp;nbsp; I also tried ${sysapproval.current.variables.my_field}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:08:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068270#M24659</guid>
      <dc:creator>jasonr</dc:creator>
      <dc:date>2015-08-20T19:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068271#M24660</link>
      <description>&lt;P&gt;Try: ${sysapproval.variables.my_field}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:12:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068271#M24660</guid>
      <dc:creator>Michael Ritchie</dc:creator>
      <dc:date>2015-08-20T19:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068272#M24661</link>
      <description>&lt;P&gt;Wow I feel silly. &amp;nbsp; Thanks Michael. &amp;nbsp; You're my hero for the day.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:16:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068272#M24661</guid>
      <dc:creator>jasonr</dc:creator>
      <dc:date>2015-08-20T19:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: SC_REQ_ITEM Approval Emails</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068273#M24662</link>
      <description>&lt;P&gt;No worries. &amp;nbsp; Just to confirm variables in the script:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current = sysapproval_approval record&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;sysapproval = task record requiring approvals&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If the record requiring approval is NOT a task, then there are document ID fields that store the table and SysID of the record requiring approval.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;With using ${sysapproval.XXX} you can dot walk to anything from the task table.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:19:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/sc-req-item-approval-emails/m-p/1068273#M24662</guid>
      <dc:creator>Michael Ritchie</dc:creator>
      <dc:date>2015-08-20T19:19:51Z</dc:date>
    </item>
  </channel>
</rss>

