incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:28 AM
how to get count of incident assigned to able tuter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:34 AM
Hello @soniya patil ,
Please use below script:
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:36 AM
hi please check below code and mark helpful and accept solution if you got answer
var gr = new GlideRecord('incident');
gr.addQuery('assigned_to', '62826bf03710200044e0bfc8bcbe5df1');
gr.addQuery('state', '1');
gr.query();
var incidentCount = gr.getRowCount();
gs.info('Number of incidents assigned to able_tutor: ' + incidentCount);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:38 AM
Hi @soniya patil ,
Use below mentioned code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 04:00 AM
From what I could see in your recent posts, you are asking simple and straight questions.
Answers to that can be easily found on ServiceNow docs page.
Did you try to explore there before posting question?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader