Finding cross listed section from course with rest API

Jump to solution
ulrik_sandgren
Community Explorer

How should an integration work to find a cross listed section when making a enrolment?

Lets say you have an integration that handles enrolment and that the course sis id is set by the integration at creation. Later  on a teacher cross lists the section

Then a student is going to be enroled by the integration (using sis id for course and student id), the integration starts doing this:

1. Finds the course id by searching with course sis id

2. Finds all section on the course id

3. Enrol the student on section id

But because the section has been cross listed step 2 fails to return the section.

And I can not find any API methods to search for sections without having a course id.

How should the integration work to be able to continue enrolling on sections after section been cross listed?

1 Solution
a_craik
Community Contributor

Hi Ulrik

We had exactly this problem. Our solution was to give the section a sis ID too. This now happens during the scripted course creation process - the course is created as before (with a sis_course_id), but then a section is created with a sis_section_id. When the script starts pushing enrolments it aims straight at the section without reference to the course - this way it doesn't matter where that section is (i.e. if it's subsequently been cross-listed).

View solution in original post