- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-21-2022 09:12 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-21-2022 11:57 PM
Hi Ravi,
Refer below script (tested in background script, working as per your requirement)
var priority1Arr =[];
var updatedP3;
var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.addQuery('priority',1);
inc.query();
// pulling all p1 incident sys_id
while(inc.next()){
priority1Arr.push(inc.getUniqueValue());
}
// setting those id in any P3 incident work notes
var incp3 = new GlideRecord('incident');
incp3.addActiveQuery();
incp3.addQuery('priority',3);
incp3.query();
if(incp3.next()){
updatedP3 = incp3.number;
incp3.work_notes += priority1Arr;
incp3.update();
}
gs.print("Done Updated in " + updatedP3); // getting record where all sys_id are setted
Kindly mark correct and helpful if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-22-2022 12:21 AM
It is working chetan, thankyou very much.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-22-2022 12:43 AM
Great š
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-22-2022 12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-05-2023 01:46 AM
Hi Team,
can i know the procedure how to do this using glide ajax and script includes
i am kind of new to Servicenow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-05-2023 04:45 AM
Hello @Dharshan N B ,
Please find this article to understand Script include How to call script include from client script | #servicenow #GlideAjax
Kindly mark helpful if applicable