generate demo data for incidents table

pxsubra
Kilo Explorer

Need help in generating test incident data in bulk.

3 REPLIES 3

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello if you go to the "incident" plugin it gives you the option to upload demo data. The demo data option is available for most of the plugins.   find_real_file.png

Hello,

I just wanted to check-in on this. Did you solve this?

If I've helped guide you correctly, please mark that reply as Correct. This helps others in the community see the correct answer (at least for you) easily.

Sumanth16
Kilo Patron

Hi,

 

Run background script 

var inc = new GlideRecord('incident');

inc.caller_id.setDisplayValue('your name'); 

inc.initialize();

inc.impact = '1';

inc.short_description = 'test';

 

inc.description = 'test';

inc.urgency = '1';

 

inc.insert();

 

 

Please mark it as helpful (or) correct if it helps.

 

Thanks,

Sumamth