<?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: How to add CC'ed users from inbound email to a custom field? in HRSD forum</title>
    <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292311#M4241</link>
    <description>&lt;P&gt;Neither are working for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 13:14:20 GMT</pubDate>
    <dc:creator>Rob Sestito</dc:creator>
    <dc:date>2019-08-14T13:14:20Z</dc:date>
    <item>
      <title>How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292286#M4216</link>
      <description>&lt;P&gt;Hello SN Comm!&lt;/P&gt;
&lt;P&gt;I have seen many other posts trying to accomplish what I am asking for. However, none of the suggestions/answered posts has worked for me (it could be that I am putting the code in the wrong area of the script).&lt;/P&gt;
&lt;P&gt;Nonetheless, Here is what I currently have for an Inbound Action to Create HR Case:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;//Set all basic HR fields
if (email.importance !== undefined) {
	if (email.importance.toLowerCase() == "high")
		current.priority = 2;
} else
current.priority = 3;

var bodyText = email.body_text;
if (!bodyText)
	bodyText = email.body_html;

current.work_notes = "HR Case created by email:\n\nReceived from: " + email.origemail + "\n\n" + email.subject + "\n\n" + bodyText;
current.description = bodyText;

// Core email rules assign "Guest" if the from email does not match a user.
// In this case, check the HR profile personal email, and reassing the case to that user.
var profile;
if (gs.getUserID() == '5136503cc611227c0183e96598c4f706') {        //GUEST SYS_ID
	profile = new GlideRecord('sn_hr_core_profile');
	profile.addQuery('personal_email', email.origemail);
	profile.query();
	if (profile.next()) {
		current.hr_profile = profile.sys_id;
		current.opened_for = '';
		current.opened_by = gs.getUserID();
		if (profile.user) {
			current.opened_for = profile.user;
			current.opened_by = profile.user;
		}
	} else {
		current.opened_by = gs.getUserID();
		current.opened_for = gs.getUserID();
	}
} else {
	// Find and attach profile if it exists
	current.opened_by = gs.getUserID();
	current.opened_for = gs.getUserID();
	profile = new GlideRecord('sn_hr_core_profile');
	profile.addQuery('user', gs.getUserID());
	profile.query();
	if (profile.next())
		current.hr_profile = profile.sys_id;
}

current.subject_person = current.opened_for;
var newId = current.sys_id;
gs.eventQueue('sn_hr_core_case.email.creation', current, newId, email.from);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the script I am trying to play with/use: (my custom field is u_additional_communications_list - and it is very similar to watch list/collaborators field as it is a ref field to the sys_user table)&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;//populate additional communications list from cc filed

var aList = current.u_additional_communication_list;
var rarray = email.recipients_array;
var instanceEmail = gs.getProperty('glide.email.user');

for (var i = 0; i &amp;lt; rarray.length; i++) {
	var recipient = rarray[i];
	var gr = new GlideRecord('sys_user');
	gr.addQuery('email', recipient);
	gr.query();
	if (gr.next()) {
		// It's a user
		if(aList != "") {
			aList = (aList + "," + gr.sys_id);
		} else {
			aList = gr.sys_id;
		}
	} else {
		//It's not a user either...so just add the address to the list...except instance email address
		if (recipient != instanceEmail) {
			if(aList != "") {
				aList = (aList + "," + recipient);
			} else {
				aList = recipient;
			}
		}
	}
	
}
current.u_additional_communication_list = aList;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This script is at the tail-end of the Inbound Action. Can someone lend a hand to see if we can get this to work correctly?&lt;/P&gt;
&lt;P&gt;Thank you so much!&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 18:07:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292286#M4216</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T18:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292287#M4217</link>
      <description>&lt;P&gt;Please take a look &lt;A href="https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_automatingapps_madrid_notifications/app_store_learnv2_automatingapps_madrid_parsing_inbound_email?v=madrid" target="_blank" rel="noopener noreferrer nofollow"&gt;here&lt;/A&gt;.&amp;nbsp; I believe what you are looking for is&amp;nbsp;email.copied.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 18:31:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292287#M4217</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2019-08-13T18:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292288#M4218</link>
      <description>&lt;P&gt;Thanks for replying Brian.&lt;/P&gt;
&lt;P&gt;Unfortunately, from your suggested link, I don't see how this tells me how I can make my inbound email action add CC'd users automatically to a field like 'Watch List' (replaced however by my custom field).&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:19:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292288#M4218</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292289#M4219</link>
      <description>&lt;P&gt;I think I see what this means now.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:29:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292289#M4219</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T19:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292290#M4220</link>
      <description>&lt;P&gt;I am still unable to get this to work correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:50:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292290#M4220</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T19:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292291#M4221</link>
      <description>&lt;P&gt;you need to something like on your 1st script&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;current&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;subject_person &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; current&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;opened_for&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;&lt;SPAN style="color: #000000;"&gt;current.u_additional_communication_list =&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;email.copied;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:54:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292291#M4221</guid>
      <dc:creator>Mike Patel</dc:creator>
      <dc:date>2019-08-13T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292292#M4222</link>
      <description>&lt;P&gt;If that doesn't work than try just changing below on your 2nd script&lt;/P&gt;
&lt;P&gt;current&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;u_additional_communication_list &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; aList.join(",")&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:58:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292292#M4222</guid>
      <dc:creator>Mike Patel</dc:creator>
      <dc:date>2019-08-13T19:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292293#M4223</link>
      <description>&lt;P&gt;Sorry I have not been seeing replies in my community inbox.&amp;nbsp; Is the CC'd user a user in your ServiceNow environment?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 20:05:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292293#M4223</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2019-08-13T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292294#M4224</link>
      <description>&lt;P&gt;That's Okay Brian-&lt;/P&gt;
&lt;P&gt;Yes they are - we house all of our employees in SN, something around 53k. So anyone being CC'd will most likely be an employee (active or not).&lt;/P&gt;
&lt;P&gt;Going to check it out more, and see if what Mike said helps me.&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 23:13:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292294#M4224</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T23:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292295#M4225</link>
      <description>&lt;P&gt;Thanks, will give this a try!&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 23:13:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292295#M4225</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T23:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292296#M4226</link>
      <description>&lt;P&gt;Thanks, will give this a try!&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 23:13:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292296#M4226</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-13T23:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292297#M4227</link>
      <description>&lt;P&gt;Hey Mike,&lt;/P&gt;
&lt;P&gt;So, we got it to work! However, I seem to be missing something to make the emails for the CC'd - match the actual user ID in the system. The actual email address of the cc'd users are just showing as their email address.&lt;/P&gt;
&lt;P&gt;Here is the code as I have it now, I am blanking on what I need to do to match it to the actual user.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;//Set all basic HR fields
if (email.importance !== undefined) {
	if (email.importance.toLowerCase() == "high")
		current.priority = 2;
} else
current.priority = 3;

var bodyText = email.body_text;
if (!bodyText)
	bodyText = email.body_html;

current.work_notes = "HR Case created by email:\n\nReceived from: " + email.origemail + "\n\n" + email.subject + "\n\n" + bodyText;
current.description = bodyText;
current.u_additional_communication_list = email.copied;
	
// Core email rules assign "Guest" if the from email does not match a user.
// In this case, check the HR profile personal email, and reassing the case to that user.
var profile;
if (gs.getUserID() == '5136503cc611227c0183e96598c4f706') {        //GUEST SYS_ID
	profile = new GlideRecord('sn_hr_core_profile');
	profile.addQuery('personal_email', email.origemail);
	profile.query();
	if (profile.next()) {
		current.hr_profile = profile.sys_id;
		current.opened_for = '';
		current.opened_by = gs.getUserID();
		if (profile.user) {
			current.opened_for = profile.user;
			current.opened_by = profile.user;
		}
	} else {
		current.opened_by = gs.getUserID();
		current.opened_for = gs.getUserID();
	}
} else {
	// Find and attach profile if it exists
	current.opened_by = gs.getUserID();
	current.opened_for = gs.getUserID();
	profile = new GlideRecord('sn_hr_core_profile');
	profile.addQuery('user', gs.getUserID());
	profile.query();
	if (profile.next())
		current.hr_profile = profile.sys_id;
}

current.subject_person = current.opened_for;
var newId = current.sys_id;
gs.eventQueue('sn_hr_core_case.email.creation', current, newId, email.from);

//Rob's Testing script Start
//add cc's to the Additional communication list

var aList = current.u_additional_communication_list;
var rarray = email.copied_array;
var instanceEmail = gs.getProperty('glide.email.user');

for (var i = 0; i &amp;lt; rarray.length; i++) {
	var copied = rarray[i];
	var gr = new GlideRecord('sys_user');
	gr.addQuery('email', copied);
	gr.query();
	if (gr.next()) {
		// It's a user
		if(aList != "") {
			aList = (aList + "," + gr.sys_id);
		} else {
			aList = gr.sys_id;
		}
	}
}
current.u_additional_communication_list = aList.join(",");
current.insert();
//Rob's Testing script End&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Shows up on the form as:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/132916i8854726C981B49A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Are you able to help me with what is needed to match the email to the actual user account? I tried copying the '&lt;STRONG&gt;Find and attach profile if it exists'&amp;nbsp;&lt;/STRONG&gt;part of the script, but it did not work as I thought.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 00:22:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292297#M4227</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-14T00:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292298#M4228</link>
      <description>&lt;P&gt;I changed few thing so try that and check logs and see you are seeing logs.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var rarray = email.copied;
var instanceEmail = gs.getProperty('glide.email.user');

for (var i = 0; i &amp;lt; rarray.length; i++) {
	var copied = rarray[i];
	var gr = new GlideRecord('sys_user');
	gr.addQuery('email', copied);
	gr.query();
	if (gr.next()) {
		gs.log("It's a User: " + gr.name + " - " + copied, "inboundaction");
		// It's a user
		if(aList != "") {
			aList = (aList + "," + gr.sys_id);
		} else {
			aList = gr.sys_id;
		}
	}
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 00:38:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292298#M4228</guid>
      <dc:creator>Mike Patel</dc:creator>
      <dc:date>2019-08-14T00:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292299#M4229</link>
      <description>&lt;P&gt;You can leverage the &lt;A href="https://docs.servicenow.com/bundle/newyork-application-development/page/app-store/dev_portal/API_reference/ArrayUtil/concept/c_ArrayUtilAPI.html" rel="nofollow"&gt;ArrayUtil Script Include&lt;/A&gt;&amp;nbsp;to simplify things:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var au = new ArrayUtil();
var instanceEmail = gs.getProperty("glide.email.user").toLowerCase().split(",");
var currentList = current.getValue("u_additional_communication_list").toLowerCase().split(",");

var copied = email.copied.toLowerCase().split();
//remove the instance email address
var copied = au.diff(copied, instanceEmail);

//get a list of User sys_ids and the matching email addresses
var ids = [];
var emails = [];
var gr = new GlideRecord("sys_user");
gr.addEncodedQuery("emailIN" + copied.join(","));
gr.query();
while (gr.next()) {
	ids.push(gr.getValue("sys_id"));
	emails.push(gr.getValue("email").toLowerCase());
}

//remove email addresses we found from the copied list
copied = au.diff(copied, emails);

//now add the corresponding User record sys_ids
copied = au.union(ids, copied);

//now add to the existing list
current.u_additional_communication_list = au.union(currentList, copied).join(",");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 03:27:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292299#M4229</guid>
      <dc:creator>Jim Coyne</dc:creator>
      <dc:date>2019-08-14T03:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292300#M4230</link>
      <description>&lt;P&gt;I would take a look at what Jim provided.&amp;nbsp; It looks like it would work based on the code he provided.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 11:57:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292300#M4230</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2019-08-14T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292301#M4231</link>
      <description>&lt;P&gt;I am getting these log warnings from the script - and I receive noting for the gs.log from your suggestion.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/132915i82501F6F73090266/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:21:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292301#M4231</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-14T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292302#M4232</link>
      <description>&lt;P&gt;Giving your script a shot Jim and will keep you updated.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:24:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292302#M4232</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-14T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292303#M4233</link>
      <description>&lt;P&gt;Jim, this did not work and I am getting the following errors:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/132922i90972E12D255692E/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:26:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292303#M4233</guid>
      <dc:creator>Rob Sestito</dc:creator>
      <dc:date>2019-08-14T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292304#M4234</link>
      <description>Try changing 
var rarray = email.copied;</description>
      <pubDate>Wed, 14 Aug 2019 12:28:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292304#M4234</guid>
      <dc:creator>Mike Patel</dc:creator>
      <dc:date>2019-08-14T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add CC'ed users from inbound email to a custom field?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292305#M4235</link>
      <description>&lt;P&gt;I think you need var rarray = email.copied.split(','); or var rarray = email.copied.toString().split(',').&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:29:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-to-add-cc-ed-users-from-inbound-email-to-a-custom-field/m-p/1292305#M4235</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2019-08-14T12:29:12Z</dc:date>
    </item>
  </channel>
</rss>

