I am trying to build a basic PowerApp to act as the signin app for our office. On sign out, I want to display a gallery of people still signed in with a sign out button next to their name.
To do this I am using this in the items property ( although it is giving me a warning, but it works )
Filter('Visitor Registration Log',CheckedIn = 1)
Then on the sign out button within each row I am wanting to set the CheckedIn status = 0 and the CheckOut DateTime = Now using the below in the OnSelect property of the button ( tried to grab this from another example ). It doesn't seem to work however.
UpdateContext({EditRecord:Patch('Visitor Registration Log',LookUp('Visitor Registration Log',ID=Gallery2.Selected.ID),{CheckedIn : 0},{ 'CheckOut DateTime' : Now()})}); Navigate('Welcome Screen',None)
Is someone able to help me connect the dots on where I am going wrong, tutorials on the web are not overly helpful.
Thanks