How to access new SNC.AssessmentCreation() which is in script include to Widget Server script

mrunalnikhi
Tera Contributor

How to access new SNC.AssessmentCreation() which is in script include to Widget Server script which is in Knowledge management Service Portal scope. I am getting empty value in script, unable to fetch script include in widget. 

mrunalnikhi_0-1787288865618.png

 

10 REPLIES 10

Hemanth M
Tera Sage

Hi @mrunalnikhi ,

 

can you try- new global.AssessmentUtils().createAssessments()

 

 

mrunalnikhi
Tera Contributor

Hi @Hemanth M still the same issue.
Still thanks for the help

Hi @mrunalnikhi ,

 

what's the use case here - just to get more context

 

 

I have to navigate user to a servey link once they rate the Knowledge article. I have created Survey. In script include, I am trying to create assessmentInstanceId so that I can pass it into Widget which pass it to link mentioned in client controller