I am creating a calendar view showing the available sessions of a Teacher (role). Each session has a global flag named "Book Session". A Student (role) can have multiple courses but only one needs to show above this view and when the Student flags/books a session, the Student's username should be set in a reference field of that session and the course name (or id?) should be set in the course reference field of that session.
How do I capture the data from that particular Course node and use Rules to set this data?