How to make Group By cases in table API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2020 01:28 AM
Hi Everyone,
How can we make group by cases in table API.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2020 01:44 AM
Hi Lucky,
It would be something like this
api/now/table/sn_customerservice_case?sysparm_query=GROUPBYcontact&sysparm_fields=number,contact
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2020 03:26 AM
Thanks for the response but it is not working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2020 03:31 AM
Hi,
please share your screenshots
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2020 03:45 AM
Hi,
if that doesn't work you can use GlideAggregate API
Example below
Endpoint: https://instanceName.service-now.com/api/now/stats/incident?sysparm_query=active%3Dtrue%5Eassigned_to%3D6816f79cc0a8016401c5a33be04be441&sysparm_count=true&sysparm_group_by=assigned_to
Output from APi:
Output from instance:
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader