I am trying to have an enroll button in my canvas app update the 'Remaining Seats' Column in my DataVerse table.
Here is my code:
ForAll(SelectedCourses, Patch('College Courses', LookUp('College Courses', 'Class Name' = ThisRecord.'Class Name'), {RemainingSeats : RemainingSeats - 1}))
The first time I reference RemainingSeats it is recognized, but the second time I get an error saying "Name isn't valid. 'RemainingSeats' isn't recognized. I don't know how to fix this.
