In some scenarios, we want to be able to generate on-demand assessments, that can be Service Portal or UI Action or Business rule
ServiceNow AssessmentCreation API provides a way to generate assessments via script. In the article, I am using createAssessments method to generate assessments via Service Portal Widget
first here is a quick explanation of the method parameter
AssessmentCreation.createAssessments (String typeID, // Assessment Metric Type Sys ID
String sourceRecordID, // Assessable Record which will be the source of assessment
String userID // users ID to which to send assessment instances to
)
Continue reading →