web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check if user checked ...
Power Apps
Unanswered

Check if user checked in for today

(0) ShareShare
ReportReport
Posted on by 820

Hi

I have an app where users must check in on tablet. Users scan NFC tag and their data is returned to some textinputs.

What i want to do is to check if a user today has already checked in and disable the button. I have written a formula but it gives delegation warning that i don't want to keep. Can you help with this formula? MY datasource is dataverse. Action field is a Choice.

I have delegation warning on IsToday part and on && part.

 

 

If(LookUp(Filter(Entrances,'Employee code'.'Darbuotojo kodas'=inpEmployeeNumber.Text),
IsToday(Date) && Action=[@Action].IN,true),
DisplayMode.Disabled,DisplayMode.Edit)

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    If(IsBlank(LookUp(YourListName, EmployeeCode = EMployeeNumber.Text)), DispalyMode.Edit, DisplayMode.Disabled)

     

    This will look for a row where EmployeeCode = the text field. If it finds one it will return the object/row and the IsBlank function will return false which will make the display mode be in disabled mode. If the row/object returned is Blank() meaning no entry was found then it will result in the IsBlank being true and therefor be in edit mode. 

  • julijazas Profile Picture
    820 on at

    @mmollet 

    But i also need to check this against today date and also an action if he Checked IN. Your formula will just search for EmployeeCode nomatter of Date. I need to check if user checked in today

  • mmollet Profile Picture
    3,187 on at

    So then use the And operator to string together your logic. Easy fix!

    If(IsBlank(LookUp(YourListName, EmployeeCode = EMployeeNumber.Text And **check date here** And **check in/out status here**)), DispalyMode.Edit, DisplayMode.Disabled)

  • julijazas Profile Picture
    820 on at

    @mmollet 

    With your formula provided i get same delegation warning problem on IsToday(date) part

  • mmollet Profile Picture
    3,187 on at

    can you post the code you are using?

  • julijazas Profile Picture
    820 on at

    @mmollet 

    Hi

    This is the code i am trying according your example:

    If(IsBlank(LookUp(Entrances,'Employee code'.'Darbuotojo kodas'=inpEmployeeNumber.Text And IsToday(Date) And Action=[@Action].IN)),DisplayMode.Edit,DisplayMode.Disabled)

     

    jja_0-1685648887464.png

     

  • mmollet Profile Picture
    3,187 on at

    Oh your using the IsToday function which cannot be delegated if I remember correctly. This will have to be changed. Cant you use something like:

    First(Approvals).StartTime = Date(Year(Now()), Month(Now()), Day(Now()))

    Instead of first just use the row from your data source. This is comparing the first rows start time to the current day (can use Today() as well and might be easier that way) and will return a boolean value like you need. 

  • julijazas Profile Picture
    820 on at

    @mmollet 

    I try something liek you suggested but anyway i get warning

    jja_0-1685694402956.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard