Hi, I am new Power Apps user. I need help to fix this.
I a create powerapps with cds/dataverse for employee check in and check out. in button check out, i want count duration with datediff. but, i get problem with "Invalid argument type" in button check out. My code in check out like this.
Patch(
'Time Entries',
LookUp(
'Time Entries',
'Time Entries'.Start = GalleryTimeEntries.Selected
),
{
'Bookable Resource': GalleryResource.Selected,
'Work Order Service Task': GalleryServices.Selected,
End : Now(),
Duration: DateDiff(
LookUp(
'Time Entries',
'Time Entries'.Start = GalleryTimeEntries.Selected
).Start,
Now(),
Minutes
)
}
)

