Copying incident fields to problem table at the time of problem creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2025 04:16 AM
Task is to create a related list of problem on a incident.form. Than wirte a script for the below scenerio...
When create a problem from existing incident than it should copy the data of all the incident fields which are common in both incident and problem table.
( Copy the data at the time of problem creation not on submission)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2025 04:22 AM
Define the difference between submitting and creating the problem.
Also: can you explain your logic, because ServiceNow is based on ITIL and what you are describing isn't ITIL. An incident can only be related to one problem, since a problem is a way to get a final solution for one or more incidents.
You can check on the OOB 'create problem' UI action on the incident. It already has some logic of fields to copy. You can extend that with the fields you need. Having 'all the common fields' doesn't make sense. It could happen that the assignment group/assigned to is the same on both, but more often than not, it's different, especially when the problem is created from an incident on a 1st line group.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2025 12:05 PM
Hi @PRATEEKMITT ,
just why? the requirement doesn’t make any sense? what is the business requirement behind this?
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 02:27 AM
WE CAN USE BUSINESS RULE INSERT AND BEFORE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 02:36 AM
@SACHINPAL
How is this a reply to the question asked by Anders?
And next to that: why all caps?
And lastly: what is your solution for the person asking the question? Next to the question itself making no sense, this one liner you respond with doesn't help anyone.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark