cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Member

How to pass course info to Canvas conversations (when creating new email)

Jump to solution

Hi,

I am trying to create a new email within Canvas by redirecting to Canvas Conversations from our app using a URL as follows:

<a id="sendMessageLink" title="Send Message via Canvas" href="https://uni.test.instructure.com/conversations?context_id&amp;user_id=123&amp;user_name=John Smith" target="_blank">

            <span class="fa fa-envelope-o envelopeMsgLink-Icon" aria-hidden="true"></span>

</a>

However, when the new email window loads, it does not have anything in the "Select course" dropdown.

How do I pass the course information within the url above, such that the dropdown gets populated with the course name and it sets this course as default?

I have the course id & course code details.

Kind regards,

- Abrar Farooqui

Tags (1)
1 Solution

Accepted Solutions
Highlighted

Hello kona@richland.edu and afarooqui@london.edu ,

I have been successful with this passthrough:

https://[YOURINSTANCE].instructure.com/conversations?context_id=course_[COURSEID]&user_id=[USERID]&u...

If you replace the items and brackets with your instance, course ID, user ID, student's first name, and student's last name. The drop down will then be correct. I hope this helps.

Cheers!

Tera

View solution in original post

7 Replies
Highlighted
Community Coach
Community Coach

Due to the technical nature of this question I'm going to share it with the Canvas Developers​ group in the Community. I'd also recommend joining this group and checking out the resources and information they have posted there.

Highlighted

Thanks Kona.

Highlighted

Hello kona@richland.edu and afarooqui@london.edu ,

I have been successful with this passthrough:

https://[YOURINSTANCE].instructure.com/conversations?context_id=course_[COURSEID]&user_id=[USERID]&u...

If you replace the items and brackets with your instance, course ID, user ID, student's first name, and student's last name. The drop down will then be correct. I hope this helps.

Cheers!

Tera

View solution in original post

Highlighted

Thanks Tera. Smiley Happy

Will give this a go.

Kind regards,

- Abrar

Highlighted

Works like a charm!!

Thanks again Tera.

- Abrar

Highlighted

Yay! My pleasure, afarooqui@london.edu! 🙂

Highlighted

Works great! Will have to remember to update it when/if the course is copied for next term!