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

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

6 REPLIES 6

what is this contact list? and sys_id?

 

kimkal
Tera Contributor

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

indeed successfully created survey instances in scoped app.