Assessment var result = new global.AssessmentUtils().createAssessments(current.questionnaire + '', current.sys_id+'', current.u_user +'', ''); returs no questions

msd93
Kilo Sage

I have used the below code in UI action

var result = new global.AssessmentUtils().createAssessments(current.questionnaire + '' ",  current.sys_id+'' ", current.u_user +'' ", '' " );

gs.addInfoMessage('result is:'+result);

But when  I click on thee button it returns "noquestions". Please note that assessable record gets created but categories do not get assigned.

Questionnaire created has 2 metric categories with conditions and though record fulfills conditions, it does not trigger the category under the assessable record.

Please reply ASAP as this is an urgent requirement

 

2 REPLIES 2

ALURU VISVA SA1
Tera Contributor

Hello, did you find the solution for this as i am facing the same problem.

Adil ELACHIQI1
Tera Contributor

Hello, here the solution

 

https://community.servicenow.com/community?id=community_question&sys_id=74defe74db655c10414eeeb5ca961927

 

Best Regards.