<?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: GlideAggregate is not working in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391879#M934073</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ritm = new GlideRecord('sc_req_item');
ritm.addEncodedQuery('active=true^RLQUERYsc_task.request_item,=00^active=true^ENDRLQUERY');
ritm.query();
gs.print(ritm.getRowCount());
while(ritm.next()){
	gs.print(ritm.number);
}&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 22 Nov 2022 20:34:18 GMT</pubDate>
    <dc:creator>Mike_R</dc:creator>
    <dc:date>2022-11-22T20:34:18Z</dc:date>
    <item>
      <title>GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391862#M934066</link>
      <description>&lt;P&gt;I have a script and currently it is not working with GlideAggregate can someone please rectify it:&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;&amp;nbsp;RITM &lt;/SPAN&gt;&lt;SPAN&gt;=&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;"sc_req_item"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RITM&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addEncodedQuery&lt;/SPAN&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PAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;==&lt;/SPAN&gt;&lt;SPAN&gt; total&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt; total&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;!=&lt;/SPAN&gt; &lt;SPAN&gt;0&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; &amp;nbsp; &amp;nbsp;gs&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;RITM&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;number&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;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:19:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391862#M934066</guid>
      <dc:creator>sudhir041</dc:creator>
      <dc:date>2022-11-22T20:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391864#M934068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what you are trying to achieve with this code, I think it might be possible to make it simpler than this.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:21:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391864#M934068</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2022-11-22T20:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391867#M934069</link>
      <description>&lt;P&gt;I need the RITMs whose all tasks are active false but RITMS are still in progress. So I need to achieve this&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:25:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391867#M934069</guid>
      <dc:creator>sudhir041</dc:creator>
      <dc:date>2022-11-22T20:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391872#M934070</link>
      <description>&lt;P&gt;This can be easily achieved through a report&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mike_R_0-1669148914405.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/219539i99286C7A786E4046/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/219539i99286C7A786E4046/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/219539i99286C7A786E4046/image-dimensions/800x393?v=v2 2.0x, /community/image/serverpage/image-id/219539i99286C7A786E4046/image-dimensions/1200x590?v=v2 3.0x" role="button" title="Mike_R_0-1669148914405.png" alt="Mike_R_0-1669148914405.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:28:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391872#M934070</guid>
      <dc:creator>Mike_R</dc:creator>
      <dc:date>2022-11-22T20:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391876#M934072</link>
      <description>&lt;P&gt;Hi can you please once rectify my code i was trying through scripting to achieve this&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:30:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391876#M934072</guid>
      <dc:creator>sudhir041</dc:creator>
      <dc:date>2022-11-22T20:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391879#M934073</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ritm = new GlideRecord('sc_req_item');
ritm.addEncodedQuery('active=true^RLQUERYsc_task.request_item,=00^active=true^ENDRLQUERY');
ritm.query();
gs.print(ritm.getRowCount());
while(ritm.next()){
	gs.print(ritm.number);
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:34:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391879#M934073</guid>
      <dc:creator>Mike_R</dc:creator>
      <dc:date>2022-11-22T20:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391882#M934075</link>
      <description>&lt;P&gt;can i not use glide aggregate?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:36:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391882#M934075</guid>
      <dc:creator>sudhir041</dc:creator>
      <dc:date>2022-11-22T20:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391891#M934078</link>
      <description>&lt;P&gt;What are you trying to accomplish exactly? What's the end goal once you have the aggregate count?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:42:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391891#M934078</guid>
      <dc:creator>Mike_R</dc:creator>
      <dc:date>2022-11-22T20:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391892#M934079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/148408"&gt;@sudhir041&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ritmArr=[];
var RITM = new GlideRecord("sc_req_item");
RITM.addEncodedQuery("active=true");
RITM.query();
while (RITM.next()) 
{
var Task = new GlideRecord("sc_task");
Task.addQuery("request_item="+RITM.getUniqueValue()+"^active=true")
Task.query();
if (!Task.next()) 
{
ritmArr.push(RITM.getValue('number'))
}
}

gs.info(ritmArr)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give you all RITM without any active task.&lt;/P&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;</description>
      <pubDate>Tue, 22 Nov 2022 20:43:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391892#M934079</guid>
      <dc:creator>Saurabh Gupta</dc:creator>
      <dc:date>2022-11-22T20:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391899#M934081</link>
      <description>&lt;P&gt;I need the RITM so instead of GlideRecord i wanted to go ahead with GlideAggregate.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:52:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391899#M934081</guid>
      <dc:creator>sudhir041</dc:creator>
      <dc:date>2022-11-22T20:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391902#M934082</link>
      <description>&lt;P&gt;The code I provided will give you that and also let you access the RITM details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ritm = new GlideRecord('sc_req_item');
ritm.addEncodedQuery('active=true^RLQUERYsc_task.request_item,=00^active=true^ENDRLQUERY');
ritm.query();
gs.print(ritm.getRowCount());
while(ritm.next()){
	gs.print(ritm.number);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:55:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391902#M934082</guid>
      <dc:creator>Mike_R</dc:creator>
      <dc:date>2022-11-22T20:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391909#M934084</link>
      <description>&lt;P&gt;Here is a script that can do that. Depending on the instance it's going for, amount of RITMs, active tasks and so on it might need to be tweaked. Perhaps even run as a flow instead and so on. I would also probably throw in some more checks in case there aren't any RITMs with state "in progress" or active tasks.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var RITM = new GlideRecord("sc_req_item");
RITM.addEncodedQuery("state=2"); //state is in progress
RITM.query();

var ritmSysids = [];
//Get all RITM sys_ids and put them in a array
while (RITM.next()) {
ritmSysids.push(RITM.getUniqueValue());
}    

var checkTasks = new GlideRecord('sc_task');
checkTasks.addQuery('request_item','IN',ritmSysids);
checkTasks.addQuery('active',true);
checkTasks.query();

//Go through active tasks and remove the RITM from the array since it should only contain
//RITM with no active tasks
while(checkTasks.next()){

ritmSysids = ritmSysids.filter(function(item) {
return item != checkTasks.request_item
})
}

gs.info("Sys_ids of RITM with no active tasks: " + ritmSysids)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:16:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391909#M934084</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2022-11-22T21:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391913#M934087</link>
      <description>&lt;P&gt;I would avoid dot-walking in an encoded query.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:17:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391913#M934087</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2022-11-22T21:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391919#M934090</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261034"&gt;@Goran WitchDoc&lt;/a&gt;&amp;nbsp;, good to know. So would you &lt;U&gt;always&lt;/U&gt; avoid using "RLQUERY"?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:37:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391919#M934090</guid>
      <dc:creator>Mike_R</dc:creator>
      <dc:date>2022-11-22T21:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391921#M934092</link>
      <description>&lt;P&gt;If possible yes. To avoid the number of calls to the server. Same thing with your code below. Avoid having nestled glideRecord calls. What I mean is having a gliderecord query inside a while loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g. My code below does 2 calls to the server no matter how many tasks or RITMs there are. In your code, if there are 1000 RITMs, it does 1001 calls to the server.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:46:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391921#M934092</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2022-11-22T21:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391930#M934095</link>
      <description>&lt;P&gt;Thanks for the insight! I don't use "RLQUERY" that often but I have used it before in simple fix scripts solely for the convenience.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be helpful if ServiceNow had some documentation around "RLQUERY". It's my understanding that this is the same thing that's used for "Related List Conditions" in report builder. Also, I've seen several posts online of people promoting it as a useful "hidden" feature.&amp;nbsp; I'll take your word and avoid it where possible but would love if ServiceNow could publish/document best practices around this.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 22:01:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391930#M934095</guid>
      <dc:creator>Mike_R</dc:creator>
      <dc:date>2022-11-22T22:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: GlideAggregate is not working</title>
      <link>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391945#M934096</link>
      <description>&lt;P&gt;for reports, you probably don't have any other way around it and that is the way forward if you want to have it in there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 22:14:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/glideaggregate-is-not-working/m-p/2391945#M934096</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2022-11-22T22:14:17Z</dc:date>
    </item>
  </channel>
</rss>

