- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 07:20 PM
what is the glide aggregate function?how to use
Solved! Go to Solution.
- Labels:
-
Field Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 10:50 PM
Hi
Please try it in the background script :-
var count =new GlideAggregate('incident');
count.addAggregate('COUNT');
count.query();
var incidents =0;
if(count.next())
{
incidents = count.getAggregate('COUNT');
gs.print(incidents);
}
Copy paste this code in Background script.
See below :-
Regards,
Omkar Mone.
www.dxsherpa.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 09:56 PM
when to run :before or after and i should use these as query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 10:03 PM
Hi,
Follow below link it will contain the info about when to run :before or after and you should use these as query.
https://community.servicenow.com/community?id=community_question&sys_id=febb4f96dbf657c0200f0b55ca961937
Please mark my answer as correct if it helps and close the thread so other can refer it.
Thanks,
Tejal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 10:11 PM
i cant find the link could u send me business rule link where we use these scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 10:13 PM
Hi ,
https://community.servicenow.com/community?id=community_question&sys_id=febb4f96dbf657c0200f0b55ca961937
Mark my answer as correct if it helps and close the thread so other can refer it.
Thanks,
Tejal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 10:46 PM