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

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

lookup value from powerapp return blank result

(2) ShareShare
ReportReport
Posted on by 127
Hi everyone!
 
I have code in default of a text input
If(
    !IsBlank(ThisItem.'Business Unit'),
    LookUp(
        EmployeeMaster,
        'User Account' = Office365Users.UserProfileV2(DataCardValue12.Selected.Email).userPrincipalName,
        'Full BU'
    ),
    ThisItem.'Business Unit'
)
 
This was used once before and it returned the result of the number I wanted it to see.
Then I made changes to the SharePoint list and focused more on deleting the information and replacing it with information.
The issue is that it returns blank instead of the FULL BU number in the datacard (As the screenshot below it should be returning the Full BU of that User Account).
May I know how to fix this?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    51,803 Super User 2025 Season 2 on at
    lookup value from powerapp return blank result
    Hi,
     
    The userPrincipal Name will be all lower case, but in your picture the persons UP/Email is upper case.
     
    That's your issue. Also, please make sure that the UP actually matches the Email, and that you shouldn't be checking the email instead
     
    Either way, the issue is the Capital versus lower case. So either change SharePoint when you create records to make them all lower case, or you need to
    make that distinction in the Filter.
  • Seth18 Profile Picture
    127 on at
    lookup value from powerapp return blank result
    Hi,
     
    Thank you for your response!
     
    I try changing to the UP/Email to lower case but it does not suggest it. Hench, I even try using the below formula:
     
    If(
        !IsBlank(DataCardValue12),
        LookUp(
            EmployeeMaster,
            Lower('User Account') = Lower(Office365Users.UserProfileV2(DataCardValue12.Selected.Email).userPrincipalName)
        ).'Staff ID',
        ""
    )

    but it not working as well the data is showing blank!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard