<?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 Add the users in the 'to' field of an email to the additional requesters field and they stay there. in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3338974#M1219286</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement that states that the users in the 'to' field of an email needs to fill the 'additional requester' field (requester_s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;So I put this code in the inbound action current.requestor_s = email.to; which works but the issue is when a user is inadvertently removed from the email chain (someone selects reply instead of reply all), that user is also removed from requestor_s field and I need them to stay.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone have any ideas?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 30 Jul 2025 14:45:21 GMT</pubDate>
    <dc:creator>alabbas</dc:creator>
    <dc:date>2025-07-30T14:45:21Z</dc:date>
    <item>
      <title>Add the users in the 'to' field of an email to the additional requesters field and they stay there.</title>
      <link>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3338974#M1219286</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement that states that the users in the 'to' field of an email needs to fill the 'additional requester' field (requester_s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;So I put this code in the inbound action current.requestor_s = email.to; which works but the issue is when a user is inadvertently removed from the email chain (someone selects reply instead of reply all), that user is also removed from requestor_s field and I need them to stay.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone have any ideas?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Jul 2025 14:45:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3338974#M1219286</guid>
      <dc:creator>alabbas</dc:creator>
      <dc:date>2025-07-30T14:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add the users in the 'to' field of an email to the additional requesters field and they stay the</title>
      <link>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3339008#M1219294</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;You can try to use the email content and apply a regex to get all the e-mails contained there.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Sometimes the emails have a content like&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To: Person1 &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;person1@email.com&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;, Person2 &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;person2@email.com&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;For that, you may use a regex like this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Jul 2025 14:58:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3339008#M1219294</guid>
      <dc:creator>Jean Henrique</dc:creator>
      <dc:date>2025-07-30T14:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add the users in the 'to' field of an email to the additional requesters field and they stay the</title>
      <link>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3339029#M1219301</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got it you are saying when some one replying on that email that time if they click on reply not reply all that time additional requester becoming blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if that is the issue then you have to check and modify inbound action which was working on reply&amp;nbsp; &amp;nbsp;and put script like if it is a reply then only modify updated fields not all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;BR /&gt;Alok Gupta&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 15:06:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/add-the-users-in-the-to-field-of-an-email-to-the-additional/m-p/3339029#M1219301</guid>
      <dc:creator>Alok Gupta5</dc:creator>
      <dc:date>2025-07-30T15:06:18Z</dc:date>
    </item>
  </channel>
</rss>

