Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

problem can be created without mandatory field

ammar_k
Tera Expert

The Problem:
In CSM Workspace, when users click on the "Create Problem" button from a case, the problem record is instantly created without any intermediate steps.

Effect:
This allows users to create problem records without filling in any mandatory fields, resulting in numerous empty problem records.

Cause:
Out-of-the-box behavior allows the creation of problem records directly without enforcing any validation or requiring mandatory fields before saving.

Is there a way to add a validation step or enforce the completion of mandatory fields before the problem record is created?
script used in the ui action : 

new sn_cs_sm.ServiceManagementProblemUtils().createProblemFromCase(current, action);

and for the. workspace : 

function onClick(g_form) {
    var newRecord = new GlideRecord("problem");
    newRecord.initialize();
    action.openGlideRecord(newRecord);
} dialog.render(); 

thank you

0 REPLIES 0