<?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: Trying to use GlideAggregate to count only specific catalog items  in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435988#M92914</link>
    <description>&lt;P&gt;Thanks but unfortunately that did not work. I replaced&amp;nbsp;c3b22a00db323300868370e2399619f0 with one of my sys_ids but REQ's CorrID did not count it.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 23:35:10 GMT</pubDate>
    <dc:creator>mrcorbeaux</dc:creator>
    <dc:date>2022-01-21T23:35:10Z</dc:date>
    <item>
      <title>Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435986#M92912</link>
      <description>&lt;P&gt;The below workflow Run Script is using GlideAggregate to count how many RITMs are included in an REQ and adds that number to the correlation_id field of the REQ.&amp;nbsp;I am trying to update it so that it only adds to the correlation_id field if specific catalog items are requested while ignoring others on the same REQ. I tried a number of things including the part I commented out which was an attempt to only count specific catalog item sys_ids, but no luck.&lt;BR /&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;var agg = new GlideAggregate('sc_req_item');&lt;BR /&gt;agg.addQuery('request', current.sys_id);&lt;BR /&gt;//agg.addQuery('sys_id', '566ff7371ba2601064c8a686624bcb98');&lt;BR /&gt;agg.addAggregate("COUNT");&lt;BR /&gt;agg.query();&lt;BR /&gt;if(agg.next()){&lt;BR /&gt; var counter = agg.getAggregate("COUNT");&lt;BR /&gt; var req_update = new GlideRecord('sc_request');&lt;BR /&gt; req_update.get(current.sys_id);&lt;BR /&gt; req_update.correlation_id = counter;&lt;BR /&gt; req_update.update();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 21:25:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435986#M92912</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-21T21:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435987#M92913</link>
      <description>&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;//This worked on PDI

var agg = new GlideAggregate('sc_req_item');
agg.addQuery('request', "c3b22a00db323300868370e2399619f0"); //REQ sys_id
agg.addAggregate("COUNT");
agg.query();
if(agg.next()){
    var counter = agg.getAggregate("COUNT");
    gs.log("counter = " + counter, '@@@TESTING');
    var req_update = new GlideRecord('sc_request');
    req_update.get("c3b22a00db323300868370e2399619f0"); //Load the same REQ
    req_update.setValue('correlation_id',counter); // this is the only change made
    var id = req_update.update();
    if(id){
        gs.log("Updated = " + req_update.number, '@@@TESTING');
    }
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 22:20:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435987#M92913</guid>
      <dc:creator>vkachineni</dc:creator>
      <dc:date>2022-01-21T22:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435988#M92914</link>
      <description>&lt;P&gt;Thanks but unfortunately that did not work. I replaced&amp;nbsp;c3b22a00db323300868370e2399619f0 with one of my sys_ids but REQ's CorrID did not count it.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 23:35:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435988#M92914</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-21T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435989#M92915</link>
      <description>&lt;P&gt;//Just to make sure, the sys_id you used is of a REQ...right?&lt;/P&gt;
&lt;P&gt;//Can you check with try catch{}. Please check the log and see if an exception is logged&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var agg = new GlideAggregate('sc_req_item');
agg.addQuery('request', "c3b22a00db323300868370e2399619f0"); //REQ sys_id
agg.addAggregate("COUNT");
agg.query();
if(agg.next()){
    var counter = agg.getAggregate("COUNT");
    gs.log("counter = " + counter, '@@@TESTING');
    var req_update = new GlideRecord('sc_request');
    req_update.get("c3b22a00db323300868370e2399619f0"); //Load the same REQ
    req_update.setValue('correlation_id',counter); // this is the only change made
	try{
		var id = req_update.update();
		if(id){
			gs.log("Updated = " + req_update.number, '@@@TESTING');
		} else{
			gs.log("Not Updated = " + req_update.number, '@@@TESTING');
		}
	}
	catch (ex) 
	{
		var message = ex.getMessage();
        gs.log("Error: " + message, '@@@TESTING'); //Check the log				
    }    
}				&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:16:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435989#M92915</guid>
      <dc:creator>vkachineni</dc:creator>
      <dc:date>2022-01-22T00:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435990#M92916</link>
      <description>&lt;P&gt;If I understand correctly and you want to count how many Catalog Items of a certain kind have been included in a Request, you should change the commented filter&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;agg.addQuery('sys_id', '566ff7371ba2601064c8a686624bcb98');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;agg.addQuery('cat_item', '566ff7371ba2601064c8a686624bcb98');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Assuming &lt;SPAN class="language-javascript"&gt;&lt;CODE&gt;566ff7371ba2601064c8a686624bcb98&lt;/CODE&gt;&lt;/SPAN&gt; is the unique id of the Catalog Item of interest.&lt;/P&gt;
&lt;P&gt;Though I wonder, is it really the the same Catalog Items will be included multiple times into a request?&lt;/P&gt;
&lt;P&gt;Not related, but I urge you to use the code toolbar item when posting code, to get proper and nice formatting and helper's attention:&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/155134iCE0FA418DCC4EA0F/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>Sat, 22 Jan 2022 00:16:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435990#M92916</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-22T00:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435991#M92917</link>
      <description>&lt;P&gt;After a closer examination of the script, I can see it has a couple more issues: has&lt;/P&gt;
&lt;PRE class="language-  language-undefined"&gt;&lt;CODE&gt;current.sys_id&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where it should have:&lt;/P&gt;
&lt;PRE class="language-  language-undefined"&gt;&lt;CODE&gt;current.request&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The complete revised code:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var agg = new GlideAggregate('sc_req_item');
agg.addQuery('request', current.request);
agg.addQuery('cat_item', '566ff7371ba2601064c8a686624bcb98');
agg.addAggregate("COUNT");
agg.query();
if (agg.next()) {
	var counter = agg.getAggregate("COUNT");
	var req_update = new GlideRecord('sc_request');
	req_update.get(current.request);
	req_update.correlation_id = counter;
	req_update.update();
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But you may also want to define a custom field for storing this count, or you should find some other field, cause correlation_id has a pretty specific use case: to store the relationship to records in foreign system with which SN could be integrated.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:34:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435991#M92917</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-22T00:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435992#M92918</link>
      <description>&lt;P&gt;Make sure the Catalog Item sys_id is valid for your instance and need before trying out the code.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:35:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435992#M92918</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-22T00:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435993#M92919</link>
      <description>&lt;P&gt;Janos,&lt;/P&gt;
&lt;P&gt;Yes, what I'm trying to do, for example, is if someone submits an RITM for a specific software title and also an RITM for an iphone on the same REQ, I only want the CorrID field to count the software title (in my example that title has a sys_id of&amp;nbsp;566ff7371ba2601064c8a686624bcb98). So in this example the REQ would have a CorrID of 1 and not 2.&lt;/P&gt;
&lt;P&gt;The first code you provided generated a CorrID of 111 which is the total of &lt;EM&gt;all&lt;/EM&gt; RITMs for that sys_ID. The revised code did not generate anything in the CorrID field.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:54:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435993#M92919</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-22T00:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435994#M92920</link>
      <description>&lt;P&gt;Vkachineni,&lt;/P&gt;
&lt;P&gt;The sysID is actually of a specific catalog item and not the REQ. My original code was misleading.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:58:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435994#M92920</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-22T00:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435995#M92921</link>
      <description>&lt;P&gt;What do you mean by "software title"?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 01:02:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435995#M92921</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-22T01:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435996#M92922</link>
      <description>&lt;P&gt;I mean I assumed 566ff7371ba2601064c8a686624bcb98 is a Catalog Item unique ID, but maybe it is a Configuration Item unique ID (sys_id)?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 01:03:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435996#M92922</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-22T01:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435997#M92923</link>
      <description>&lt;P&gt;Hello Janos,&lt;/P&gt;
&lt;P&gt;566ff7371ba2601064c8a686624bcb98 is the sys_ID of the catalog item for SnagIT software.&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 17:01:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435997#M92923</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-24T17:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435998#M92924</link>
      <description>&lt;P&gt;If that is the sys_id of a Catalog Item included multiple times in a request (b.t.w. do you want the count for the current request only, or any request) and current is a Requested Item that is part of a Request that also contains the SnagIT Catalog Item, the code should update that field with at least 1. If it does not, then something else must be the problem, like the Requested Items do not in fact belong to the same request, or the Business Rule is scheduled to run at the wrong time, etc. But the code has been tested (of course with proper sys_id). It also seems strange to me, especially now that you confirm that the sys_id is indeed that of the SnagIT Catalog Item, that a software would be included multiple times into the same request, except if this is perhaps a delegated request experience instance?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 20:46:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435998#M92924</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-24T20:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435999#M92925</link>
      <description>&lt;P&gt;That is the correct sys_ID for the SnagIT catalog item.&lt;BR /&gt;Yes, I only want to count items (ex SnagIT) on the current request only, not all requests. The reason someone may request 2 SnagITs on a single REQ is because user can request the software for multiple people on one REQ.&lt;/P&gt;
&lt;P&gt;Not sure why your code doesn't populate the CorrID. You may be right that a Biz Rule may be an issue. There's an Out-of-Box rule called "Can request be sourced" that looks for catalog items that have a Model in the catalog item record. That's really what I'm trying to do. Only count items (like SnagIT) that have a model. The problem with the code I initially provided is if you request SnagIT (which has a model) and an iphone (no model) the CorrID is 2 when it should be 1.&lt;/P&gt;
&lt;P&gt;Below is the rule&amp;nbsp;"Can request be sourced". We don't have plugin com.sn_hamp installed so much of it is irrelevant. I tried striping that code out and making changes to gr.addQuery but still can't get this to work.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;sourceable(current);

function sourceable(record) {
  var C_STOCK_ORDER_CAT_SYS_ID = '4109aa5fdb22001015a8ffefbf961984';
  var gr = new GlideRecord("sc_req_item");
  gr.addQuery("request", record.sys_id);
  //A OR (B AND C) not supported
	//Hence going for (A OR B) AND (A OR C)
	var qc = gr.addNotNullQuery("cat_item.model");
	if (GlidePluginManager.isActive('com.sn_hamp')) {
		qc.addOrCondition("cat_item.sys_id", C_STOCK_ORDER_CAT_SYS_ID);
		qc.addOrCondition('variables.dbccd3f2b7621010189e22b5de11a90e', '!=', '');//expecting this catalog item only if HAMP is active, hence not checking if HAMP active or not
		// need to enhance code
		var qc1 = gr.addNotNullQuery("cat_item.model");
		qc1.addOrCondition("variables.6189629fdb22001015a8ffefbf96197f", "!=", "");//Checking if model variable is not null
		qc1.addOrCondition('variables.dbccd3f2b7621010189e22b5de11a90e', '!=', '');
	}
	gr.setLimit(1);
  gr.query();
  if (gr.hasNext()) {
    record.sourceable = true;
		record.update();
  }
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 23:49:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1435999#M92925</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-24T23:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436000#M92926</link>
      <description>&lt;P&gt;Now that I think of it, it is almost obvious. The issue might be that when a Request is submitted, 1st the Requested Items are created than the parent Request. That means when the Requested Items are running the Business Rule, the Request does not yet exist. So just move the Business Rule to run on the Request table after insert.&lt;/P&gt;
&lt;P&gt;As a clarification, do you want to count any Catalog Items that have a model, or only SnagIT?&lt;/P&gt;
&lt;P&gt;The code needs to change if moved to sc_request and will need additional changes if any Catalog Item with model should be counted.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 00:08:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436000#M92926</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-25T00:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436001#M92927</link>
      <description>&lt;P&gt;Janos, The Biz Rule is actually already on the the request table and running after insert. Also, yes I'm trying to count all catalog items with a model. SnagIT is just one of about a dozen we have with a model. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 18:10:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436001#M92927</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-25T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436002#M92928</link>
      <description>&lt;P&gt;In that case the code should be something like:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var agg = new GlideAggregate("sc_req_item");
// Select Requested Items of the current Request
agg.addQuery("request", current.getUniqueValue());
// Select only those Requested Items that were created from Catalog Items that have a model associated with it
// It may be necessary to further qualify the selection here, but specifying model category (so that only software models are included)?
agg.addNotNullQuery("cat_item.model")
agg.addAggregate("COUNT");
agg.query();
if (agg.next()) {
	var counter = agg.getAggregate("COUNT");
	current.correlation_id = counter;
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also because the Business Rule runs on the same table as the one modified, this must be a Before Business Rule, not an After Business Rule.&lt;/P&gt;
&lt;P&gt;'Cause we know the rules:&lt;/P&gt;
&lt;P&gt;- No updating current in Business Rules; that means not only calling current.update(), but also loading the current record and updating it.&lt;/P&gt;
&lt;P&gt;- If the current record is modified, it has to be a Before Business Rule&lt;/P&gt;
&lt;P&gt;- If a different record is modified, it has to be an After Business Rule, unless what is modified is not loaded into the form in which case it can also be an Async Business Rule to allow faster form load times.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 09:15:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436002#M92928</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-26T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436003#M92929</link>
      <description>&lt;P&gt;Janos,&lt;/P&gt;
&lt;P&gt;Fantastic! This is working with your last revised code. The REQs are only counting catalog items that have a model. I didn't even need to change the Biz Rule. You have been a great help.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 22:09:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436003#M92929</guid>
      <dc:creator>mrcorbeaux</dc:creator>
      <dc:date>2022-01-26T22:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use GlideAggregate to count only specific catalog items</title>
      <link>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436004#M92930</link>
      <description>&lt;P&gt;You're most welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 06:49:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/trying-to-use-glideaggregate-to-count-only-specific-catalog/m-p/1436004#M92930</guid>
      <dc:creator>-O-</dc:creator>
      <dc:date>2022-01-27T06:49:26Z</dc:date>
    </item>
  </channel>
</rss>

