How to enable No Late Submissions State for Google Classroom using Apps Script

59 Views Asked by At

I was trying to set NO_LATE_SUBMISSIONS, option to the classWork for Google Classrooms using the Apps Script, using the following method. It is giving an error saying there is no "setLateSubmissionPolicy" method. How do I set the No Late Submission option? I would appreciate it if you let me know how to set that option on the Classwork.

I was trying to do this, and it is not working.

var classWork = Classroom.newCourseWork();
classWork.setLateSubmissionPolicy(Classroom.newLateSubmissionPolicy().setLateSubmissionPolicyState("NO_LATE_SUBMISSIONS"));
0

There are 0 best solutions below