Hi @dylandavis09 , Please help how do you make sure that student has selected the course from gallery? I mean which control you are using to allow student to select the courses from gallery? Or whatever courses are shown in the gallery , you want that to pact to SP list?
If you can help me with above question, then I can help you building the logic.
OR
EDITED
If you are saying that the gallery will have all the courses which is already selected student and you want to just patch those in single item in SP list then you can use Index function.
ClearCollect(col_SelectedCourse, Gallery.AllItems);
Patch(
'Register Course Classes',
Defaults('Register Course Classes'),
{
'Full Name': User().FullName,
'1st Course': Index(col_SelectedCourse, 1 ).ColumnName,
'2nd Course': Index(col_SelectedCourse, 2 ).ColumnName,
'3rd Course': Index(col_SelectedCourse, 3 ).ColumnName,
'4th Course': Index(col_SelectedCourse, 4 ).ColumnName,
'5th Course': Index(col_SelectedCourse, 5 ).ColumnName
}
)
Check this: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-first-last
-----------------------------------------------------------------------------------------------------------------------------
I hope this helps.
Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍
Thanks,
ANB