The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Does anybody have any ideas on sending over custom fields to an lti integration that contain substrings of an existing variable? I tried this to hopefully get 2 characters starting at the 10th location, but it just sent the entire field as a literal.
student_campus=${Canvas.user.sisIntegrationId:10:2}
I looked at https://github.com/instructure/canvas-lms/blob/master/lib/lti/variable_expander.rb#L26 but that's outside my knowledge zone right now.
I'm bumping this in hopes of finding an answer to this. I have a similar requirement, in this specific case for a user enrolled in multiple sections if you send the canvas_course_sectionsissourceids, it returns a comma separated list of entries, and I only want the first entry (which unfortunately in this particular case is not always the courseoffering_sourcedid so that is not an option for this use case).
A similar common use case that I can imagine is to assist in matching a username in a "username@domain.edu" style format to the the sAMAccountName format by only taking the string up to the @ symbol.
It does not look like there is any way to run any regex or run code before a launch of an LTI 1.3 tool to change the parameters, and it would have to be done on the tool side which is not always as flexible. I'm hoping there is some secret method of doing this that I'm not finding in my search of the forums. Any ideas?
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in