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 / New data not showing
Power Apps
Unanswered

New data not showing

(0) ShareShare
ReportReport
Posted on by 146

Hi everyone!

I’m working on a PowerApp linked to two SharePoint lists:

  1. EmployeeMaster – This contains the Staff ID and User Account.
  2. Another SharePoint list – This holds the Employee ID, which is displayed in a DataCard.

I’m trying to show the Staff ID from EmployeeMaster based on the email in the Employee ID DataCard. Here’s the formula I’m using:

 
 If(
    !IsBlank(DataCardValue12),
    LookUp(
        EmployeeMaster,
        'User Account' = Office365Users.UserProfileV2(DataCardValue12.Selected.Email).userPrincipalName,
        'Staff ID'
    ),
    ""
)

The Issue:

This formula worked perfectly with the old data in EmployeeMaster, but after I deleted all the old data and replaced it with new data (without changing any column names), the formula stopped working. Now it just shows blank, even though the formula hasn’t changed.

Here’s what I tried so far:

  • Refreshed the SharePoint connection in PowerApps.
  • Removed and re-added the EmployeeMaster data source.

But it’s still not showing the Staff ID.

Any ideas on what could be causing this?

Categories:
I have the same question (0)
  • Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at
    Hi Seth,

    Does your formula show any errors in your Canvas App editor?  It looks like it contains some syntax errors to me.

    1.  I think you need to fix your "!IsBlank()" function.  Maybe add ".Selected.Email" or change it to an !IsEmpty on your datacard's .SelectedItems.  An !IsBlank(DataCardValue) that doesn't specify any properties of DataCardValue will always return true.

    2.  Your lookup formula looks incorrect.  If you want to output the "Staff ID" you need to put that after your closing parenthesis for your LookUp.  Like "LookUp(...).'Staff ID'"
     
     If(
        !IsBlank(DataCardValue12.Selected.Email),
        LookUp(
            EmployeeMaster,
            'User Account' = Office365Users.UserProfileV2(DataCardValue12.Selected.Email).userPrincipalName).'Staff ID',
        ""
    )
  • Seth18 Profile Picture
    146 on at
     
    Thank you for your response!
     
    Currently the canvas App editor is not showing any error and to clarify the datacardvalue12 is an employee Name. So in what i am doing is that when the employee name is elected then i want the Employee ID to be shown. Like i mentioned above with the old data it shown but with a new data (just making change to some users info) currently it just blank. And your suggested code is also showing the blank result as well :/

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 765 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 272

Last 30 days Overall leaderboard