Hello Comunity,
I have a button in my app that is supposed to update some columns in a sharepoint list and i am getting "Title: Field 'Title' is required" error on my function.
Intrested in 4 columns in List: 'Start Time' , 'End Time' , 'Time Spent' , 'Active Session'
'Start Time' - at the press of a button just updates the column with that moments date and time - This was done !
'Active Session' - Yes/No type column. When start time is pressed active session turns to 'Yes' - This was done !
'Time Spent' - calculated time in minutes from when start time was pressed untill end time was pressed
'End Time" - at the press of a button to update 'End Time', 'Time Spent' and switch 'Active Session' to 'No'
My function as i wrote it:
If(
LookUp('Time Records',User = UserField.Text, true) && LookUp('Time Records','Active Session' = true, true), Patch('Time Records',Defaults('Time Records'), {'End time': Now(), 'Time Spent': DateDiff(varNewItem.'Start time',Now(),Minutes), 'Active Session': false}));