- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 04:40 AM
Hi,
I am getting object when I'm gliding the record, I want to get the number of RITM. How we can achieve this ?
Please some one help me with this. Thanks in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 05:16 AM
Ahh ok! you are querying with number so your addQuery should be like below
gr.addQuery('parent.number',numb);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 05:39 AM
if you need multiple numbers then your script should be like below
var numb = 'ADP0002427';
var gr = new GlideRecord('sc_req_item') ;
gr.addQuery( 'parent.number',numb) ;
gr.query();
while(gr.next())
{
gs.info (gr.number.toString()) ;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 05:43 AM
Thanks for helping me out