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 / 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
    993 Moderator 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard