Is it possible to clone or copy an existing story and create a new story... like insert and save in reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 06:52 AM
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
- Labels:
-
Best Practices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 07:04 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 07:07 AM
Thank you Dixit, will try and let u know this option.