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 / 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
Categories:
I have the same question (1)
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 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
    54 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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard