Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

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()

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026

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

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026

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