<?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 multiple emails at once in a GlideList User field ? in Virtual Agent forum</title>
    <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193885#M15579</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/793502"&gt;@JérômeM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no OOB approach to add all the recipients at a time. However you can have a server script in place to add the recipient email ids or have one custom string type field where you can padte the comma separated mail IDs and one BR to populate the receipt list from the custom field to OOB user field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 14:25:13 GMT</pubDate>
    <dc:creator>J Siva</dc:creator>
    <dc:date>2025-03-03T14:25:13Z</dc:date>
    <item>
      <title>How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193861#M15577</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I would like to have the possiblity to add multiple email addresses (coma-separated) at once in a GlideList field, the Watch List field as example.&lt;BR /&gt;Is it something someone got an idea ? I'm trying since a few days without success...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JrmeM_0-1741010922291.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/423418i8BAB6BE263648420/image-size/medium?v=v2&amp;amp;px=400" alt="JrmeM_0-1741010922291.png" title="JrmeM_0-1741010922291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Enterring emails one by one works, but I would like to be able to do this with multiple.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Jérôme&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:09:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193861#M15577</guid>
      <dc:creator>JérômeM</dc:creator>
      <dc:date>2025-03-03T14:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193885#M15579</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/793502"&gt;@JérômeM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no OOB approach to add all the recipients at a time. However you can have a server script in place to add the recipient email ids or have one custom string type field where you can padte the comma separated mail IDs and one BR to populate the receipt list from the custom field to OOB user field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:25:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193885#M15579</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-03-03T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193888#M15580</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/793502"&gt;@JérômeM&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you trying to add multiple values in watch list at one Go?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes then you can do with the help of script.&amp;nbsp; You can have an array and store sys_id of users and then g_form.setValue("watch_list", array_name);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you have to create Client Callable Script Include for pushing sys_id in an array and then rerun the array.&lt;/P&gt;&lt;P&gt;Then in Client script you can write&amp;nbsp;&amp;nbsp;g_form.setValue("watch_list", array_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is high level on how you can set multiple values in your watch list. However the exact solution may differ depending on your scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If my response helped, please mark it helpful and accept the solution so that it benefits future readers.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:26:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193888#M15580</guid>
      <dc:creator>Rohit  Singh</dc:creator>
      <dc:date>2025-03-03T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193889#M15581</link>
      <description>&lt;P&gt;Isn't it possible to interact with the email part of the watch list OOB field with a client script ? I tried but didn't manage to get it work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:26:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193889#M15581</guid>
      <dc:creator>JérômeM</dc:creator>
      <dc:date>2025-03-03T14:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193895#M15582</link>
      <description>&lt;P&gt;Nope. It's not achievable only via client script.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:29:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193895#M15582</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-03-03T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193898#M15583</link>
      <description>&lt;P&gt;But I don't need sys_ids to be retrieved. I want to add for example : &lt;A href="mailto:user1@test.com," target="_blank"&gt;user1@test.com,user2@test.com,user3@test.com as a one go in the Email part of the glide list. &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:29:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193898#M15583</guid>
      <dc:creator>JérômeM</dc:creator>
      <dc:date>2025-03-03T14:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193915#M15585</link>
      <description>&lt;P&gt;Do you have an idea of a client script that can do this ?&lt;BR /&gt;Tried with this, but no luck&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue === '') {
        return;
    }
    var emails = newValue.split(/[;,]+/); // Séparer les emails par virgules ou points-virgules
    var validEmails = [];
    emails.forEach(function(email) {
        email = email.trim();
        if (email &amp;amp;&amp;amp; validateEmail(email)) {
            validEmails.push(email);
        }
    });
    g_form.setValue('watch_list', validEmails.join(','));
}

function validateEmail(email) {
    var re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
    return re.test(email);
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:35:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193915#M15585</guid>
      <dc:creator>JérômeM</dc:creator>
      <dc:date>2025-03-03T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193932#M15586</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/793502"&gt;@JérômeM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not possible.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:42:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193932#M15586</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-03T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple emails at once in a GlideList User field ?</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193938#M15587</link>
      <description>&lt;P&gt;You can use the below community post to get some idea on how to populate list type variables.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/developer-blog/dynamically-set-list-collector-on-change-of-variable/ba-p/2268044" target="_blank"&gt;https://www.servicenow.com/community/developer-blog/dynamically-set-list-collector-on-change-of-variable/ba-p/2268044&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:45:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/how-to-add-multiple-emails-at-once-in-a-glidelist-user-field/m-p/3193938#M15587</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-03-03T14:45:10Z</dc:date>
    </item>
  </channel>
</rss>

