@Anonymous
I believe you can get this working if you add an OData filter to your existing configuration. You need to retrieve only the records for the employee who is ckecking out.
The filter will look something like this:
EmployeeClaims eq 'Email of the person who clicked the button from Dynamic properties'
You'll need the single quotes.
OData filters usually use a columns internal name. So, create a new flow and use get items to retireve items from the attendance list. Run the flow and ckeck to output of the Get items action. You'll need to refer to the Employee claims column in exactly the same way as it shouws in the output.
You'll still want Order By ID Desc and Top count of 1