How to insert data from another component to collection items action

Is there a way from Glide where we can grab a certain data at a current screen to input into values into an action?

I have a database table that is called Class Schedule where it has a unique identifier of Class ID.

Linking to it will be Attendance table where upon clicking “Present” or “Absent” it will then create a row with respective Student ID but I am having difficulties looking up for the Class ID value. Any help is much appreciated.

On entry to the class schedule details view, you can use a set column action to write the Class ID to your User Profiles row.

Then you can reference that in the “Present” or “Absent” actions.

Thank you so much for the quick response, I have given it a go and it does what I needed it to!