- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 04:22 AM
I attended the interview today interviewer ask one question like
Problem Record A : 20 records
Problem Record B : 10 records
Incident : INC00000(Reference field) (When incident is created)
Short-Description : Text
Description : Text
1.When the user select problem Record A only print 20 records along with short description , description.
2.Same as user select problem Record B only print 10 records along with short description , description.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 05:18 AM
your question is not clear.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 04:40 AM
so what did you answer?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 04:55 AM
Hi Ankur,
var problemSysId = current.problem_id;
var gr = new GlideRecord('incident');
gr.addQuery('problem_id', problemSysId);
gr.setLimit(20);
gr.query();
while (gr.next()) {
gs.print('Incident Number: ' + gr.number + ' | Short Description: ' + gr.short_description);
}
But i don't know where i can mistake if any idea please let me know Ankur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 05:18 AM
your question is not clear.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 05:56 AM
Hi Ankur,
Question : When the user select problem Record A only print 20 records along with short description , description.