Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Checks Sharepoint list submission created by and date

(1) ShareShare
ReportReport
Posted on by 4
Hi,
I'm building an app that includes a checklist. I was to add whether or not the form has been submitted each day for the past 5 days using an icon. There will be multiple users so i've added in a check for whether a submission has been made by the current user for each specific date using the following code:
If(LookUp('FOH Opening Checklist','Created By'.Email=User().Email,Date = Today()-1),"Checkmark","Dismiss")
I only seem to get a false response no matter what. I've tried a few methods but can't make it work but it works for the current date which uses the following code:
If(LookUp('FOH Opening Checklist','Created By'.Email=User().Email,Date = Today()),"Checkmark","Dismiss")
I tried using DateAdd(Today(),-1) as well with the same result. Every time I use the Copilot explanation it indicates that the code is correct:
This expression checks if the current user's email matches the email of the creator in the 'FOH Opening Checklist' table for the previous day's date. If the condition is true, it displays a "Checkmark" icon; otherwise, it displays a "Dismiss" icon.
Any help would be appreciated.
  • Verified answer
    BCBuizer Profile Picture
    21,991 Super User 2025 Season 1 on at
    Checks Sharepoint list submission created by and date
    Hi JR,
     
    If you are using this expression to set the Icon property of an icon control, please try:
    If(
        IsBlank(
            LookUp(
                'FOH Opening Checklist',
                'Created By'.Email=User().Email && 
                Created >= Today() -1 &&
                Created < Today()
            )
        ),
        Icon.Cancel,
        Icon.Check
    )
     
    What this does is to check the Created column in the data source to make sure it is in between the start of yesterday and
    the start of today. 
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard