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 / SPO People field issue...
Power Apps
Answered

SPO People field issue office365users

(0) ShareShare
ReportReport
Posted on by 14
Hi team, 
Let me explain what is my problem:
I have a SharePoint list with the 'Requested by' column set up as People.
In Power App, I would have a dropdown to which I add to the Default property the following:
 
If(
    Form1.Mode = FormMode.New;
    {
        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
        Claims: "i:0#.f|membership|" & User().Email;
        Department: "";
        DisplayName: User().FullName;
        Email: User().Email;
        JobTitle: "";
        Picture: ""
    };
    ThisItem.'Requested by'
)
Theoretically, this should display the logged-in user in that field. Instead, it shows 'INJECT0' and, if I expand it, a series of numbers. Interestingly, when I submit the form, the username does appear in SharePoint, but I can't manage to display it in the app
 
Any help is welcome
Thanks!
Reuben
PowerApp issue.png
Categories:
I have the same question (1)
  • Verified answer
    mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at
    hey
     
     
     
    which properties did u set in the field settings?
    click on the input controls and hit edit next to fields.
     
    that should pop up:
     
    i am using this in default of the whole datacard:
    If(Form1.Mode=FormMode.New, 
    
        { 
    
            Claims: "i:0#.f|membership|" & User().Email, 
    
            Department: "", 
    
            DisplayName: User().FullName, 
    
            Email: User().Email, 
    
            JobTitle: "", 
    
            Picture: "" 
    
        }, 
    
        ThisItem.Employee
    
    ) 
    if my reply helped please mark as verified answer,
     
     
    cheers
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi Rick_B,
     
    I don't think this will work with the Dropdown. What you need is a Combobox with the following properties. 
    Items:
    Choices([@SPList]. 'Requested by')
    DefaultSelectedItems
    If(
        Form1.Mode = FormMode.New;
        {
        Claims: "i:0#.f|membership|" & Lower(User().Email),
        Department: "",
        DisplayName: Office365Users.UserProfile(User().Email).DisplayName,
        Email: User().Email,
        JobTitle: "",
        Picture: ""
    };
        ThisItem.'Requested by'
    )
    The fields property should be set up like this:
     
    It should then populate the control like this:
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
     
  • Nandit Profile Picture
    1,568 Moderator on at
    Hi Rick_B,
     
    Just following up to see if you got the chance to try out the method I shared.
     
    Kind regards,
    Nandit
  • Rick_B Profile Picture
    14 on at
     Thanks  @Nandit & @mmbr1606 for your replies.
    The problem was on Field properties. I didnt have any Field selected, so when adding Display.Name to the field, it perfectly works.
     
    Thank you very much both for your help!
  • ProPosia Profile Picture
    58 on at
    The solution provided by @mmbr1606 ,  might work for user who is using classic combobox control. Because classic combobox control has 
    DisplayFields = ["DisplayName"]          
    SearchFields  = ["DisplayName","Email"]

    But If I am using Modern Form which has modern combo box then I do not get those peroperties to select.

    I am seeing this for the person column fetched from SharePoint list. 
    Can anyone suggest something to show display name in modern combo box here,

    Thanks 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard