'SNC.AssessmentCreation().createAssessments' not worked

Saeka
Kilo Sage

Hello,

 

Implemented the ability to create surveys using "SNC.AssessmentCreation().createAssessments" in PDI.

We have implemented the same in the production environment, but it does not work with an error.

IzakiSaeka_0-1696495909728.png

 

The application scope is different between PDI and the development environment.

 

Could you please explain the cause of this problem?

1 ACCEPTED SOLUTION

Jean Ferreira
Giga Guru

Probably the script you are executing is not in Global scope.
SNC is an object in Global scope.
Try to create the same script but in Global scope.

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Saeka 

So are you saying it worked in PDI but didn't work in customer instance?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

Yes, as you said.

Jean Ferreira
Giga Guru

Probably the script you are executing is not in Global scope.
SNC is an object in Global scope.
Try to create the same script but in Global scope.