I would like to know if there is a way to get the associated course and/or enrolment from the most recent graded submission:
I already have the list of enrolment and course of the user. however, the return object of the most recent graded submission API does not contain the course or enrolment. Hence, I can't map it back to which course or enrolment the submission is associated with.
I can see that there is a preview URL in the json object has course id. For example data: https://xxx.instructure.com/courses/7173/assignments/50738/submissions/4739?preview=1&version=1
I am not sure if the preview URL will always have a course in it and If I should base my check of the course on it.
I'd be glad to have more ideas from you guys.