- 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
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
If the required custom fields are not already available in the incident, you will need to create them to achieve your use case.
Please ensure that the newly created fields are placed in the appropriate section where they are expected.
Without customization or with OOB features of incident you can not achieve it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We need to add information to the form in separate fields, but we can't create the fields.
Then you will have to answer two questions:
1. Why do you need the information on the form?
2. Why aren't you allowed to create the custom fields?
And then you take those answers to the decision maker and ask him which answer wins. Either you don't put the information on the form, or you create the custom fiels.