- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 01:54 AM
Hi all,
I want to create problem by copying existing record.
I know incident record can copy by clicking header and select 'Copy Incident'.
Is it possible to do the same thing at problem table?
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 02:22 AM
Hi you can use script in UI Action like this
var prb = new GlideRecord('problem');
prb.initialize();
prb.short_description = current.short_description; // copy short description
prb.description = current.description;// copy description
prb.assigned_to = current.assigned_to; // copy assigned to
prb.assignment_group = current.assigned_group; //copy group
var SYSID = current.insert(); // this will create a new problem record
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 01:57 AM
Hi Shun,
You can use the same code from copy incident and create Custom UI Action in Problem table. Check the below will provide more information
https://community.servicenow.com/community?id=community_question&sys_id=2bc5e2aadb539f000be6a345ca9619a5
Thanks
Chandu Telu
Please Mark ✅ Correct/helpful, if applicable,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 05:03 AM
HI shun
Follow Up - is your requirement is completed with my answer. Please mark answer as correct it will use for other community members if not let us know your issue so we can help you
Thanks
Chandu Telu
Please Mark ✅ Correct/helpful, if applicable,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 02:12 AM
Hi Shun
Check "Copy Incident" script. It's calling Script Include "IncidentUtils2" which calls "IncidentUtils2SNC". Adding "Copy Problem" probably can be done but it doesn't look too simple.
- Go to "System Definition" > "UI Action".
- Filter on "Name", "Copy Incident"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 02:22 AM
Hi you can use script in UI Action like this
var prb = new GlideRecord('problem');
prb.initialize();
prb.short_description = current.short_description; // copy short description
prb.description = current.description;// copy description
prb.assigned_to = current.assigned_to; // copy assigned to
prb.assignment_group = current.assigned_group; //copy group
var SYSID = current.insert(); // this will create a new problem record
Harish