79543023

Date: 2025-03-29 09:14:20
Score: 1.5
Natty:
Report link

Correcting the call to CourseWorkMaterials.list and using the optional arguments solved my issue

    const getAllMaterials = Classroom.Courses.CourseWorkMaterials.list(courseId,  {
      courseWorkMaterialStates: ["PUBLISHED", "DRAFT", "DELETED"]
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Class Admin