I can update all other SharPoint fields using the Patch function, but I am unsucessful in udpating lookup columns using a button.
I have a Customers list and a Projects list and I am trying to patch the ID of the Customer into the Projects list which has a lookup column to the Customers list ( column ID).
This is my function which is connected to the button -
Patch(Projects,{Title: Gallery.Selected.Title, CustomerID: Gallery.Selected.ID})
The error message I get is 'The type of this record does not match the expected type 'Record.' Found type 'Number'.