Is it possible to clone or copy an existing story and create a new story... like insert and save in reports

Srinivasa Rao
Tera Contributor

Hi,

Please help,

I need a functionality of creating a new story in servicenow using an existing story either clone or copy option, the way we create insert and save in reports to create a new report using an existing table...

Thanks in advance and appreciated your help

Srini

2 REPLIES 2

saprem_d
Giga Guru

Hi,



You can create a UI action on rm_strory table to clone the existing record. Use below sample script and add your required fields.



var sd = new GlideRecord('rm_strory');


sd.initialize();


sd.short_description = current.short_description;


sd.what all fields you require = current.what all fields you require;


sd.insert();



action.setRedirectURL(current);


gs.addInfoMessage('Current story has been cloned to ' sd.number);


Thank you Dixit, will try and let u know this option.