How can I call SNC.AssessmentCreation()).createAssessments in scoped app?

kimkal
Tera Contributor

The following call works fine in Global scope but not in scoped applicatoin:

(new SNC.AssessmentCreation()).createAssessments("dc8394ad07dadc10b02bf61d7c1ed0aa", "", contactList);

There must be a way to call SNC.AssessmentCreation()).createAssessments in scoped application?

1 ACCEPTED SOLUTION

cuong nguyen
Giga Contributor

new global.AssessmentUtils().createAssessments('dc8394ad07dadc10b02bf61d7c1ed0aa','',contactList);

works for me

View solution in original post

5 REPLIES 5

kimkal
Tera Contributor

Thanks for the solution! new global.AssessmentUtils().createAssessments('dc8394ad07dadc10b02bf61d7c1ed0aa','',contactList); 

indeed successfully created survey instances in scoped app.