-
Coding a searchable datatable in a page
Hi fine folks in the Instructure community, I am reaching in out in the hopes that someone who has more coding experience than me (which isn't that hard to beat) might have a Js code for including a searchable datatable in a Canvas page. Although it might be the simplest solution my fellow instructors absolutely do not…
-
Assistance Needed with Centering Modal in Canvas LTI Tool
Hello Canvas Community, I'm relatively new to LTI tool development and currently facing a challenge with modal implementation in an LTI tool embedded within an iframe. Although the modal opens as expected, it's not centered on the full Canvas page - it aligns only within the confines of the iframe. To give some context,…
-
Is there a way to get annotations for a submission through Canvas API? Where are annotations stored
-
Conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value
Table I am trying to import: canvas.assignments I am running into a datetime2 into datetime out of range exception from pyodbc. The MS SQL plugin code I have written is written similarly to their provided MySQL plugin. Based on the data from the file it does not appear to be a min/max date-related issue.…
-
creating JSON objects with Canvas data from API
Hey. I am trying to build JSON objects to work with down the line. However, I am running into an issue and am hoping I can get some help. I am wanting to store all pages of a Canvas course in the JSON 'page_url', but I am only getting the last page that is in the iteration of a course. Any ideas on how to get ALL pages in…
-
Overwrite assignments during content migration
Hi Everyone, We're using the course_copy_importer via API to push some assignments into courses. For example, let's say we have an ACCT 101 Exam with assignment ID '9639141' and then a list of Canvas Course IDs and push that same assignment into each of them in one shot. It works fine, the problem we're running into now is…
-
Get the list of prior-enrollment studentsID of a courseID via API
Dear all, I am trying to build a script to get the assignments that a past course has, and the active users are not shown. although on the website, one can access the previously enrolled students, I would like to iterate over the list of past users, and be able to get the file that was uploaded for that course, and for…
-
Disable user using REST API
When a user is terminated in the organization, we would like the account to be disable using automation tools. * What is the correct process to disable a user? * Using delete login (https://canvas.instructure.com/doc/api/logins.html#method.pseudonyms.destroy) is sufficient? * Is there a API to disable User ?
-
Getting exception while adding assignments
I'm trying to add the assignment using the API but getting below error, URL: POST https://xxx.instructure.com/api/v1/courses/891/assignments/1515/submissions Invalid submission[submission_type] given. I used the below body, submission[submission_type]:'online_text_entry' submission[user_id]:311 submission[body]: "", I'm…
-
Course Audit API
We were trying to retrieve when courses (plural) were published and by whom using the Course Audit API. https://canvas.instructure.com/doc/api/course_audit_log.html For "Query By Course", the API seemed to work (least for a years-worth of data). This is the same as what you can pull from the Admin > Course Activity log UI.…
-
REST API to get members for a role
I am looking to integrate our Canvas with a 3rd party access governance system using REST APIs. I cannot find an API to get the membership information for roles. I do see there is an API to get role membership per user but I am looking for an API to give me all membership data in one for or membership per role. I don't…
-
Graphql StudentSummaryAnalytics: pageView data
Hi everyone, I wanted to get some insight into what data is returned from the graphql api StudentSummaryAnalytics: pageView endpoint. I tried to cross validate with the page views found in New Analytics in a course and have not been able to find a good correlation between the two. Any insight would be appreciated. Thank…
-
API returns my schools login page
Hello, I am making a web app that groups all my assignments into one list and whenever I request data from the API it returns with my school's SSO login page, is there any way to combat this? I am pretty sure I'm using the correct auth attributes but I don't know, here is the current URL I am requesting from…
-
Section name and ID variable substitution ordering
These two variable substitutions expose section IDs and section names in the LTI 1.3 NRPS response: * com.instructure.User.sectionNames * Canvas.course.sectionIds Used in conjunction, they can sometimes be used to determine which sections the user is in, including the names of those sections, because the two variables come…
-
External Tool in Course Navigation showing by default
Hi, I have a chicken and egg situation with an new External Tool. * I've added an External Tool and updated the placement information so it appears on Course Navigation. So far so good. * A link for the tool appears in the Course Navigation but by default it is visible/ not hidden. I noticed many of the External apps have…