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 🙂

Best Regards
Aman Kumar

View solution in original post

11 REPLIES 11

Harish KM
Kilo Patron
Kilo Patron

can you share the script?

Regards
Harish

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"));


}

Best Regards
Aman Kumar

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
}

 

Regards
Harish