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

sachin_namjoshi
Kilo Patron
Kilo Patron

The AssessmentCreation class is defined at the platform (Java) layer and not directly accessible from scoped app. It is not a standard script include.

 

Regards,

Sachin

Prateek kumar
Mega Sage

Try something like below?

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


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

cuong nguyen
Giga Contributor

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

works for me

How is this different from my comment


Please mark my response as correct and helpful if it helped solved your question.
-Thanks