How to GET instructors for a course offering
Hello,
We are building an integration between Workday Student and Brightspace. We plan on using the D2L Standard CSV method in IPSIS, but are running into a problem.
We can build a delta report that will tell us which course offerings have changes, and will return all of the current instructors. But so far, it seems like we are not able to build a delta report in our SIS that will tell us when an instructor was unassigned from a course section ( offering ).
So, we're thinking we might have to make an API call to lookup which instructors are assigned to teach a given course. What's the best way to do this ?
This call will return the class list :
GET /d2l/api/le/(version)/(orgUnitId)/classlist/ : Retrieve the enrolled users in the classlist for an org unit.
But we don't know the orgUnitId in our SIS, we only know the Org Unit Code. Would we have to do it in two steps ?
Thanks for your help,
Jeff
Answers
-
Hi Jeff,
Thank you for reaching out to us through community .
We understand your requirement, however, at the moment we don't have an API call that can be called just with
parameter orgUnitCode. Mot API calls requires orgUnitID is a parameter to fetch the details.
Alternately, you can use thdatasets in Data Hub to check the current enrollments of the users in the courses.
Enrollments and Withdrawals dataset can be used to fetch the enrollment details in the course..
- Advanced dataset
https://community.d2l.com/brightspace/kb/articles/4539-list-of-advanced-data-sets
Course Offering Enrollments
AboutReturns the course offerings within which a user is enrolled, including both explicit and implicit enrollments.
Enrollments and Withdrawals
AboutReturns explicit enrollment status for all users in an org unit.
2. Brightspace dataset
Enrollments and Withdrawals
The Enrollments and Withdrawals Brightspace Data Set returns a list of enrollments and withdrawals for all users in your organization.Hope this helps
Thanks,
Sreelakshmi