How should I check a text file to see if it has a new course for my Canvas project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I hope this is the right place to ask.
I have a "courses.txt" which contains the courses for my Canvas community. This will have new classes added to it as time goes on, and I want a way to update my courses on the regular. In this case, I have a "courses.txt" that contains data in a fixed pattern about all the available courses, including name and ID. This will have new values added regularly to it.
Now I want to check Canvas, and using some detail there, compare it to this text file to see which courses
What I want is a way to check which of these courses are new ones - that the database doesn't recognise them already. But how do I check this? What value from Canvas should I check?
Right now, I'm checking the most recent sis_import_id to the ID values in courses.txt; if they don't match, the course is considered new. But am I anywhere near the right track? Is there a better metric for what I want to do?
Any help on this would be greatly appreciated.