cancel
Showing results for 
Search instead for 
Did you mean: 
10618071
Learner

Can't get rootAccount.id, account_uuid from LTI handshake

Jump to solution

I have the following xml as part of my LTI request. Please notice the 3 underlined lines below. These 3 lines are not returning any data. Does anyone see a problem?

According to <!-- - Canvas LMS REST API Documentation , this data should always be available.

<lticm:options name="custom_fields">
<lticm:property name="custom_canvas_lms">$lms</lticm:property>
<lticm:property name="custom_canvas_api_domain">\$Canvas.api.domain</lticm:property>
<lticm:property name="custom_canvas_course_id">\$Canvas.course.id</lticm:property>
<lticm:property name="custom_canvas_user_id">\$Canvas.user.id</lticm:property>
<lticm:property name="custom_canvas_user_login_id">\$Canvas.user.loginId</lticm:property>
<lticm:property name="lis_person_contact_email_primary">\$Person.email.primary</lticm:property>
<lticm:property name="user_image">\$User.image</lticm:property>
<lticm:property name="lis_course_offering_sourcedid">\$CourseSection.sourcedId</lticm:property>
<lticm:property name="lis_person_sourcedid">\$Person.sourcedId</lticm:property>
<lticm:property name="membership_roles">\$Canvas.membership.roles</lticm:property>
<lticm:property name="custom_canvas_account_id">\$Canvas.account.id</lticm:property>
<lticm:property name="custom_canvas_user_is_root_account_admin">\$Canvas.user.isRootAccountAdmin</lticm:property>
<lticm:property name="custom_canvas_root_account_id">\$Canvas.rootAccount.id</lticm:property>
<lticm:property name="vnd_canvas_root_account_uuid">\$vnd_canvas_root_account_uuid</lticm:property>
<lticm:property name="vnd_instructure_course_uuid">\$vnd.instructure.Course.uuid</lticm:property>
</lticm:options>

Labels (1)
Tags (2)
1 Solution

Accepted Solutions
10618071
Learner

I thought I'd follow up here and say it there is no actual problem. Just user error Smiley Sad. The issue was that I didn't reinstall the LTI after I updated my code. As a result, Canvas had old xml. Everything worked fine when I updated it.

View solution in original post

0 Kudos
3 Replies
karl
Instructure
Instructure

Jared are you getting data for the other variables too? I've never seen the preceding "\" before the "$". I did some testing with custom fields settings in the UI and the "\" made the parameter fail to populate with the expected value, but I haven't had a chance to test via XML config yet.

10618071
Learner

I thought I'd follow up here and say it there is no actual problem. Just user error Smiley Sad. The issue was that I didn't reinstall the LTI after I updated my code. As a result, Canvas had old xml. Everything worked fine when I updated it.

View solution in original post

0 Kudos

Thanks for taking the time to update the thread with the resolution, 10618071!