cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
afarooqui
Community Participant

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
teraulbert
Community Contributor

Hello  @kona  and  @afarooqui  ,

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

8 Replies
kona
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.

afarooqui
Community Participant

Thanks Kona.

teraulbert
Community Contributor

Hello  @kona  and  @afarooqui  ,

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

afarooqui
Community Participant

Thanks Tera. Smiley Happy

Will give this a go.

Kind regards,

- Abrar

afarooqui
Community Participant

Works like a charm!!

Thanks again Tera.

- Abrar

teraulbert
Community Contributor

Yay! My pleasure,  @afarooqui ! 🙂

pfau
Community Participant

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

The information provided concerning the URL is cut off. Anyway, what are the identifiers for the subject and body, so I can include them in the URL?

Tags (1)