How to write where clause in database join to check if work notes CONTAIN 'value1' or 'value2'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 11:40 PM
How to write where clause in database join to check if work notes CONTAIN 'value1' or 'value2'
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 09:42 AM
Hi @Snehal13 Use belwo script
var gr = new GlideRecord('incident');
gr.addEncodedQuery('work_notesLIKEexecuted the script^ORwork_notesLIKEdeployed the script');
gr.query();
while (gr.next()) {
var category = gr.category;
var state = gr.state;
var workNotes = gr.work_notes;
// Output or process the result as needed
gs.info('Incident Number: ' + gr.number + ', Category: ' + category + ', State: ' + state);
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 10:33 PM
Can I export the output result in an XLS sheet after running this script