<?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 get inactive members in each group and an email should trigger to individual manager in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008625#M1135438</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a requirement to get inactive members in each group and to send an email to managers with the inactive user details in their group&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; i am trying with below code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; gr=&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideAggregate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sys_user_grmember'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'user.active'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'manager.active'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.groupBy(&lt;/SPAN&gt;&lt;SPAN&gt;'group'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;(gr.next())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs.log(gr.group.name+&lt;/SPAN&gt;&lt;SPAN&gt;':::'&lt;/SPAN&gt;&lt;SPAN&gt;+gr.group.manager.user_name);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am getting the groups and managers list with this , but not getting how to send email to these managers with inactive user details ??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this should trigger every 6 months , so i am trying this code in a schedule job&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;please help how to send inactive user details in the email , i have event and notification already .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp; please provide your inputs&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Shabbir Shaik&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 04 Aug 2024 12:36:23 GMT</pubDate>
    <dc:creator>shabbir5</dc:creator>
    <dc:date>2024-08-04T12:36:23Z</dc:date>
    <item>
      <title>How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008625#M1135438</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a requirement to get inactive members in each group and to send an email to managers with the inactive user details in their group&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; i am trying with below code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; gr=&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideAggregate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sys_user_grmember'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'user.active'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'manager.active'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.groupBy(&lt;/SPAN&gt;&lt;SPAN&gt;'group'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gr.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;(gr.next())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs.log(gr.group.name+&lt;/SPAN&gt;&lt;SPAN&gt;':::'&lt;/SPAN&gt;&lt;SPAN&gt;+gr.group.manager.user_name);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am getting the groups and managers list with this , but not getting how to send email to these managers with inactive user details ??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this should trigger every 6 months , so i am trying this code in a schedule job&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;please help how to send inactive user details in the email , i have event and notification already .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp; please provide your inputs&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Shabbir Shaik&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 Aug 2024 12:36:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008625#M1135438</guid>
      <dc:creator>shabbir5</dc:creator>
      <dc:date>2024-08-04T12:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008639#M1135446</link>
      <description>&lt;P&gt;I'm not Ankur, so you can ignore the answer if you are just wanting his input (tagging really is the 2nd annoying thing)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a flow for it. You can trigger flows on a schedule as well. From there you can easily do a lookup to the groups with inactive user and use the send email action to trigger it to be received by the group manager. If you use a 'for each' to check on all inactive users, you can put them in the email. You could even make it one email per manager if you don't want multiple emails for one person managing more groups.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 13:07:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008639#M1135446</guid>
      <dc:creator>Mark Manders</dc:creator>
      <dc:date>2024-08-04T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008641#M1135447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/193277"&gt;@shabbir5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To achieve this, you need to perform the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Query Inactive Members&lt;/STRONG&gt;: Retrieve inactive users in each group and their managers.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Aggregate Data&lt;/STRONG&gt;: Collect inactive user details for each group and prepare the data for email.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Send Email&lt;/STRONG&gt;: Use the gs.eventQueue to trigger an event that will send an email to the managers with the collected data.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Schedule the Job&lt;/STRONG&gt;: Create a scheduled job to run this script every 6 months.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is the complete solution to your requirement:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create Notification&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to System Notification &amp;gt; Email &amp;gt; Notifications.&lt;/LI&gt;&lt;LI&gt;Create a new notification with:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: Inactive User Notification&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt;: Global&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;When to send&lt;/STRONG&gt;: Event is fired&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Event Name&lt;/STRONG&gt;: custom.inactive.user.notification&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Set Email Subject and Body&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Subject: Inactive Users in Your Group&lt;/LI&gt;&lt;LI&gt;Email Body: Use the emailBody passed in the event.&lt;STRONG&gt;Who will receive&lt;/STRONG&gt;: Users/Groups as needed (or use a script to send to the dynamic recipientCreate Scheduled Job&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Create a Scheduled Job&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Navigate to System Definition &amp;gt; Scheduled Jobs.&lt;/LI&gt;&lt;LI&gt;Create a new Scheduled Script Execution with:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: Send Inactive User Notifications&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;: Periodically&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Repeat Interval&lt;/STRONG&gt;: Every 6 months&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Script for Scheduled Job&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function() {
    var gr = new GlideAggregate('sys_user_grmember');
    gr.addQuery('user.active', false);
    gr.groupBy('group');
    gr.query();

    var groupDetails = {};

    while (gr.next()) {
        var groupID = gr.getValue('group');
        var groupName = gr.group.name.toString();
        var groupManager = gr.group.manager.user_name.toString();

        if (!groupDetails[groupID]) {
            groupDetails[groupID] = {
                name: groupName,
                manager: groupManager,
                users: []
            };
        }

        var inactiveUserGR = new GlideRecord('sys_user_grmember');
        inactiveUserGR.addQuery('group', groupID);
        inactiveUserGR.addQuery('user.active', false);
        inactiveUserGR.query();

        while (inactiveUserGR.next()) {
            groupDetails[groupID].users.push({
                name: inactiveUserGR.user.name.toString(),
                email: inactiveUserGR.user.email.toString()
            });
        }
    }

    for (var groupID in groupDetails) {
        var groupInfo = groupDetails[groupID];
        var emailBody = 'Dear ' + groupInfo.manager + ',\n\n';
        emailBody += 'The following users in your group "' + groupInfo.name + '" are inactive:\n\n';
        
        groupInfo.users.forEach(function(user) {
            emailBody += '- ' + user.name + ' (' + user.email + ')\n';
        });

        emailBody += '\nPlease review and take necessary action.\n\nBest Regards,\nYour Company';

        // Trigger the email event
        gs.eventQueue('custom.inactive.user.notification', null, groupInfo.manager, emailBody);
    }
})();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This script will collect inactive users for each group and send an email to the respective group managers every 6 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark as helpful if this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Akshay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 13:16:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008641#M1135447</guid>
      <dc:creator>Akshay Gupta2</dc:creator>
      <dc:date>2024-08-04T13:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008683#M1135464</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please use this&amp;nbsp; Script&amp;nbsp; :&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; grGroup = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sys_user_grmember"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;grGroup.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;"user.active"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;grGroup.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;"manager.active"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;grGroup.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;(grGroup.next()){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"UserName "&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;" :"&lt;/SPAN&gt;&lt;SPAN&gt;+ grGroup.user.name +&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;" Group Name "&lt;/SPAN&gt;&lt;SPAN&gt;+ &lt;/SPAN&gt;&lt;SPAN&gt;" :"&lt;/SPAN&gt;&lt;SPAN&gt;+grGroup.group.name +&lt;/SPAN&gt;&lt;SPAN&gt;"Group Manager Name"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;" :"&lt;/SPAN&gt;&lt;SPAN&gt;+ grGroup.group.manager.name);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"Manager sysID"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;+grGroup.group.manager);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; grUser = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sys_user"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;grUser.addEncodedQuery(&lt;/SPAN&gt;&lt;SPAN&gt;"sys_id="&lt;/SPAN&gt;&lt;SPAN&gt;+grGroup.group.manager);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.info(grUser.getEncodedQuery());&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;grUser.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (grUser.next()){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs.info(grUser.email);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs.eventQueue(&lt;/SPAN&gt;&lt;SPAN&gt;"eventname"&lt;/SPAN&gt;&lt;SPAN&gt;,current,grUser.email,&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//or&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.eventQueue(&lt;/SPAN&gt;&lt;SPAN&gt;"eventname"&lt;/SPAN&gt;&lt;SPAN&gt;,current,&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt;// set the manager name in whom to send in the notification&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 Aug 2024 17:44:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008683#M1135464</guid>
      <dc:creator>VenkataNaru</dc:creator>
      <dc:date>2024-08-04T17:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008874#M1135516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/193277"&gt;@shabbir5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Flow will be an alternate no-code and efficient way to handle this requirement as suggested by&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/7272"&gt;@Mark Manders&lt;/a&gt;&amp;nbsp;. Please give it a try and let us know if you face any issues,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Amit Verma&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 06:57:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3008874#M1135516</guid>
      <dc:creator>vermaamit16</dc:creator>
      <dc:date>2024-08-05T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3009340#M1135669</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/193277"&gt;@shabbir5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with Mark here.&lt;/P&gt;
&lt;P&gt;Please share the status once you try that flow option&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:30:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3009340#M1135669</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2024-08-05T12:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get inactive members in each group and an email should trigger to individual manager</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3196597#M1184511</link>
      <description>&lt;P&gt;1. This is helpful. But when we are writing everything in the scheduled job script why do we require email notification?&lt;/P&gt;&lt;P&gt;2. Only to send out to managers or particular group we are create a notification.&lt;/P&gt;&lt;P&gt;3. how to link notification n scheduled job script here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can respond on this please?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 11:11:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-get-inactive-members-in-each-group-and-an-email-should/m-p/3196597#M1184511</guid>
      <dc:creator>vishnumaaya</dc:creator>
      <dc:date>2025-03-05T11:11:15Z</dc:date>
    </item>
  </channel>
</rss>

