ABHAY_M
Tera Guru
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 11-12-2021 09:53 PM
I have seen lot of user posting script related queries in plain text this will be very hard to analyze the syntax error of code you have posted in your questions.
please follow the screenshots to create questions related to scripts in ServiceNow community.
Image 1 with code editor
if you paste code in plain text this is how it will be visible after posting question
var gr =new GlideRecord('incident');
gr.addActiveQuery();
gr.query();
if(gr.next){
var a =gr.getRowCount();
gs.addInfoMessage(a);
}
if you paste code in insert code as mentioned in above images.
var gr =new GlideRecord('incident');
gr.addActiveQuery();
gr.query();
if(gr.next){
var a =gr.getRowCount();
gs.addInfoMessage(a);
}
hope this helps with new users who are trying to post questions in community
Thanks
Abhay
Thanks
Abhay
Labels: