Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Creating a Cinema Reservation

Posted on by
I am making an app using PowerApps to reserved a seat, it is linked to a SharePoint List called "Reservation" which has 2 columns, "Seats" and "Status"

I'd like to be able to update the "Status" of multiple "Seats". In my App I have a ComboBox which items are the "Seats" and a Dropdown Box with the items "Free", "Occupied" and "Reserved"

the Columns "Seats" has a value of A1 to A10. I am getting an error when I use the Patch to update the "Status" column of the selected items in the ComboBox.

Here's my code for the Submit Button
 
ForAll(
    ComboBox2.SelectedItems,
    Patch(
        'Reservation',
        LookUp('Reservation', Seats = ThisRecord.Seats),
        {Status:Dropdown4.Selected.Value}
    )
);
Notify("Seats updated successfully!", NotificationType.Success)


I also tried the following code, no error however only the last item is being updated
ForAll(
    ComboBox2.SelectedItems,
    Patch(
        'Reservation',
        LookUp('Reservation', Title = ComboBox2.Selected.Value),
        {Status:Dropdown4.Selected.Value}
    )
);
Notify("Seats updated successfully!", NotificationType.Success)
Categories:

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard