- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have a requirement that when an incident gets promoted to major incident, I need to create a section on incident form and need to show few information as mentioned in the attachment. Here the challenge is we are not supposed to create the custom fields on incident table.
Could we achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
HI @Akshay Kumar3 ,
Thanks for confirming.
Based on the constraints you mentioned:
The data is not currently stored in ServiceNow.
There is no integration to retrieve the data from the third-party system.
Creating custom fields on the Incident table is not allowed.
Since the information you need to capture is more like a checklist, we can leverage the existing Checklist functionality in ServiceNow.
Proposed approach:
1.Open any incident record and Use form builder to add check list formatter to the form.
2.Open any Incident record, create a new checklist with the required questions, and save it as a checklist template.
3.Navigate to checklist_template.list and copy the sys_id of the created checklist template.
4.Now Create a BR to create a checkList when Major incident state changes to accepted.
script:
(function executeRule(current, previous /*null when async*/ ) {
// Ensure you have the sys_id of the checklist template and your target record
var templateSysId = '7a85262497a49b10f0b5bd0de053af44'; // Replace with your template sys_id (step-3)
var targetTable = current.getTableName(); // 'incident'
var targetRecordSysId = current.getUniqueValue(); // Target record sys_id
// Call the OOB utility to create the checklist from the template
var chkUtil = new ChecklistUtil();
chkUtil.createChecklistFromTemplate(templateSysId, targetTable, targetRecordSysId);
})(current, previous);
5.Now, whenever an Incident is promoted to a Major Incident, the checklist will be automatically attached to the Incident.
Drawback: The Checklist formatter is not supported in Workspace, so the checklist will not be visible in the Workspace form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @Akshay Kumar3 ,
You mentioned that creating custom fields on the Incident table is not allowed.
I would like to clarify one thing: Does the information you want to display already exist in any of the existing fields on the Incident table?
If the required fields already exist, we can simply create a new section on the Incident form and add those existing fields to it, without creating any custom fields.
You can display the same fields in multiple sections on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @Rakesh_M , these are the fields from a template and this form layout is belongs to the 3rd party system. And these fields are not available in Incident. Its something like question and answer as we have in ootb checklist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Akshay Kumar3 ,
If those fields are not available on the Incident table, where is the data currently stored in the ServiceNow instance?
You can display data in ServiceNow only if it is available somewhere in the instance or retrieved from the third-party system through an integration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
As of now, its not configured in servicenow and its a new requirement to achieve this on Incident form