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 / Checks Sharepoint list...
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.
Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at
    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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard