Relative Content

Tag Archive for google-sheetsgoogle-apps-scriptgoogle-classroom

How do I find the Classroom that a Sheet was opened in, using bound code in the Sheet?

Within a Classroom, an assignment has been created that contains a Sheet, which each student has a copy. I am trying to find a way, within the GAS bound to the sheet, to determine which Classroom course the Sheet was opened from.
The template Sheet that I am developing may be used in many Classrooms and by many students. I have got the file id from using the onOpen trigger: