I have created a dialog box with 2 buttons Yes and No, when a user clicks on Yes the following code below should be executed:
First I am creating a variable named varID that should hold the ID of the current selected item from my Gallery
Set(varID, GalleryBookings.Selected);
Then I want to perform a patch that updates the item named CancelledOnDate and set it to Todays date
but I am getting an error that says Incompatibe types for comparison , these types can't be compared Number, Record
Patch(HotelReservations,LookUp(HotelReservations,ID=varID),{CancelledOnDate:Today()});
Not sure what I am doing wrong here.