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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / LookUp to SharePoint List
Power Apps
Answered

LookUp to SharePoint List

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have a SharePoint list with two columns:

- CertifiedUser (Person type)

- CertifiedDate (Date type)

 

I have a screen with a submit button and two labels.

When Submit is clicked:

- Patch command adds CertifiedUser and CertifiedDate to the SP list.

- Label1 always displays 'You were certified on '.

- Label2 should display the CertifiedDate, but it is blank.

If I restart the application, Label2 displays CertifiedDate correctly.

 

Text property of second label is: 

LookUp(Certifications,CertifiedUser.Email=User().EmailCertifiedDate)
 
What am I missing? How do I display CertifiedDate after Submit is clicked?
 
Thanks

 

 

Categories:
  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @gna99 

     

    When you restart the application, it fetches the latest data from the SharePoint list, which includes the CertifiedDate you patched, and thus Label2 displays the date correctly.

     

    To resolve this issue, you can force a refresh of the Certifications data source after the Patch command. This will ensure that the app has the latest data, including the newly added CertifiedDate.

     

    Refresh(DataSource)

     

    // OnSelect property of the Submit button
    Patch(
    Certifications,
    Defaults(Certifications),
    {
    CertifiedUser: User().Email,
    CertifiedDate: Now() // or another way you set the certified date
    }
    );
    Refresh(Certifications); // Refresh the Certifications list after patching

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • gna99 Profile Picture
    13 on at

    That worked.

    Thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard