Hello,
I am new to power apps and am struggling with following problem.
I have a MS List named Demo1 with 5 columns namely:
Title(text)-name of machines,
EQ(number)-machine number,
Alarm(yes/no)-status of alarm,
DateTime(Datetime)- date and time
and Person(Person)- name of user
I have connected this list with a canvas app named Demo1 with UI just showing Title, EQ using labels and Alarm using toggle buttons, now I want that when a user selects the toggle button, the name of user and the date and time the toggle was clicked must get stored in the list. I used a patch function on Onselect property of toggle as
Patch(Demo1, First(Filter(Demo1, Title = Label1.Text)), {Alarm: Toggle1.Value}, {Person: User().FullName}, {DateTime: Now()}),
it throws an error that the expected type of argument of Person is record type but found type is text.
Any help would be much appreciated!