<?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 How to access a catalog item variable in a notifications &amp;quot;Who will receive&amp;quot; section? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960331#M617257</link>
    <description>&lt;P&gt;Hi there, I have a catalog item users fill out that has a Requested_for, Opened_by, and u_who_gets_data_access field. I have no problem accessing the Requested_for or Opened_by in a Notification for "Who will receive" tab, but I&amp;nbsp;can't seem to access that u_who_gets_data_access variable. I can access that variable in the "What it will contain" tab via ${parent.variables.u_who_gets_data_access}. Is there a way for me to get that variable into the "Who will receive" tab, or a different way of going about this process in general? I tried looking on the sc_req_item and sc_request tables to see if there was a unused user field that I could take advantage of but with no success.Any ideas are appreciated, thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 22:58:27 GMT</pubDate>
    <dc:creator>Jared Wason</dc:creator>
    <dc:date>2020-01-21T22:58:27Z</dc:date>
    <item>
      <title>How to access a catalog item variable in a notifications "Who will receive" section?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960331#M617257</link>
      <description>&lt;P&gt;Hi there, I have a catalog item users fill out that has a Requested_for, Opened_by, and u_who_gets_data_access field. I have no problem accessing the Requested_for or Opened_by in a Notification for "Who will receive" tab, but I&amp;nbsp;can't seem to access that u_who_gets_data_access variable. I can access that variable in the "What it will contain" tab via ${parent.variables.u_who_gets_data_access}. Is there a way for me to get that variable into the "Who will receive" tab, or a different way of going about this process in general? I tried looking on the sc_req_item and sc_request tables to see if there was a unused user field that I could take advantage of but with no success.Any ideas are appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 22:58:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960331#M617257</guid>
      <dc:creator>Jared Wason</dc:creator>
      <dc:date>2020-01-21T22:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to access a catalog item variable in a notifications "Who will receive" section?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960332#M617258</link>
      <description>&lt;P&gt;Hi Jared,&lt;/P&gt;
&lt;P&gt;You can add the cc or bcc in the email using email script. Please find the sample code below:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
	
	// Add your code here
	email.addAddress("cc", "user@example.com","User");
	email.addAddress("bcc", "user@example.com","User");
})(current, template, email, email_action, event);
//replace usr@example.com with the recipient email address
//replace User with the Display name of user.
//you can get the variable details from variables using current.variables.variable_name&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Kindly mark my answer as Correct and Helpful based on the Impact.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Chaitanya&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 23:17:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960332#M617258</guid>
      <dc:creator>Chaitanya Redd5</dc:creator>
      <dc:date>2020-01-21T23:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to access a catalog item variable in a notifications "Who will receive" section?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960333#M617259</link>
      <description>&lt;P&gt;There really isn't a way to do this, with a "normal" notification that I'm aware of. The only way I can see this working would be to make your notification event driven instead, so that you could call the notification (either from a Business Rule or from a Workflow) and dynamically pass the users you want as recipients.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This document outlines how to create an event and a notification:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/task/t_CreateANotification.html" rel="nofollow"&gt;https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/task/t_CreateANotification.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;On the notification you would need to be in the advanced view (might have to save the record before you can change the view) and would want to set the field "&lt;LABEL class=" col-xs-12 col-md-3 col-lg-4 control-label" for="ni.sysevent_email_action.event_parm_1"&gt;&lt;SPAN class="label-text" title=""&gt;Event parm 1 contains recipient"&lt;/SPAN&gt;&lt;/LABEL&gt;&lt;/P&gt;
&lt;P&gt;Once you have your event and your notification created, you can invoke it within a server-side script using&lt;/P&gt;
&lt;P&gt;gs.eventQueue(&amp;lt;eventname&amp;gt;, current, &amp;lt;param1&amp;gt;);&lt;/P&gt;
&lt;P&gt;For param1 you can pass a comma separated string of either email addresses, or sys_ids or users.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this was helpful or correct, please remember to be kind and click appropriately!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 23:26:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960333#M617259</guid>
      <dc:creator>Michael Jones -</dc:creator>
      <dc:date>2020-01-21T23:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to access a catalog item variable in a notifications "Who will receive" section?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960334#M617260</link>
      <description>&lt;P&gt;I ended up find the solution to my needs by adding the third variable "u_who_gets_data_access" to the watch_list field. This allowed me to then put the request.watch_list in the email notification.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 18:26:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/1960334#M617260</guid>
      <dc:creator>Jared Wason</dc:creator>
      <dc:date>2020-01-23T18:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to access a catalog item variable in a notifications "Who will receive" section?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/3503304#M1249777</link>
      <description>&lt;P&gt;the way I did this was with a event fired from the flow where we can pass two parameters,&amp;nbsp; I pass the email from the variable I wanted., That event then triggers the notification in which we can choose the parameters as Who will receive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 22:22:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-access-a-catalog-item-variable-in-a-notifications-quot/m-p/3503304#M1249777</guid>
      <dc:creator>denistheria</dc:creator>
      <dc:date>2026-03-06T22:22:58Z</dc:date>
    </item>
  </channel>
</rss>

