Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

iam facing problem of background script not showing the output

divya venna
Kilo Explorer

any one please help me

1 ACCEPTED SOLUTION

@divya venna 

Is your issue resolved?

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

View solution in original post

12 REPLIES 12

Harish KM
Kilo Patron

can you share the script?

divya venna
Kilo Explorer

var inc =new GlideRecord('incident');

inc.Query();

while(inc.next())

{


gs.print('inc.number')


}

var inc =new GlideRecord('incident');

inc.query();

while(inc.next())

{


gs.print(inc.getValue("number"));


}

What is the exact requirement?

 

var inc= new GlideRecord("incident");
inc.query();
while(inc.next())
{

gs.print("INC number"+inc.number); // you missed this to print
}