I am trying to update a value in Sharepoint list, in a choice type column(Named: Status) with the help of a button in power-apps where if the value in the status in Sharepoint list is, 'Booked' it will change to 'Checked-in', when I hit the Check In/Out button and similarly when I hit the button again the Checked-in will change to 'Checked-out' eventually.
This is my code, so far:
Patch(
Appointments,
LookUp(
Appointments,
Associate.Value = Associate_Number.Text
),
If(
'Checked_In/Out'.Text = {Status : {Value: "Booked"}},
{Status: {Value: "Checked-in"}},
{Status: {Value: "Checked-out"}}
)
);