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 / ComboBox not populatin...
Power Apps
Answered

ComboBox not populating data correctly

(0) ShareShare
ReportReport
Posted on by 101

The intention of the ComboBox is to automatically pull through the display name of the user signed into the app.
The user has the option to change the ComboBox to another users name, it is searchable.

Jandal_Power_0-1713757355528.png

The issue I am experiencing is, if the name is automatically filled in, nothing comes up when its patched through.
If you select any user in the company, even yourself, then the data shows up.
Why does the Automatic name pull through as blank?

Jandal_Power_1-1713757822033.png

Is it the way I am patching the data?

 

If(
 !IsBlank(ComboBox1.Selected) &&
 !IsBlank(TextInput3.Text),
 Set(
 varRecordID,
 Patch(
 'IFP - PPE Cart Orders',
 Defaults('IFP - PPE Cart Orders'),
 {
 Requestor: ComboBox1.Selected,
 Title: TextInput2.Text,
 'Order Comments': TextInput3.Text,
 'Order total': Sum(colPPECart, SubTotal)
 }
 ).ID
 );
 Collect('IFP - PPE Cart Ordered Items', AddColumns(colPPECart, OrderID, varRecordID ));
 Clear(colPPECart);
 Notify("Submission Successful", NotificationType.Success, 2000);
 Navigate(scrPPEHome),
 Notify("Please fill in all required fields.", NotificationType.Error, 2000)
)

 

Is it because I used ".Selected"? and it is not a selection?
I populate the name by...
On ComboBox - DefaultSelectedItems - 

 

{
 DisplayName: Office365Users.MyProfile().DisplayName,
 UPN: Office365Users.MyProfile().UserPrincipalName
}

 

Cheers 😂



Categories:
I have the same question (0)
  • Verified answer
    Kuhlani Profile Picture
    82 on at

    Your use of .Selected is correct. The issue seems to be a mismatch in the schema of the person object since your DefaultSelectedItem does not match the object SharePoint is expecting. Try this:

     

    Change the Items property of the combo box to:

    Choices('IFP - PPE Cart Orders'.Requestor)

     

    And the DefaultSelectedItem to:

    {
     Claims: $"i:0#.f|membership|{Lower(User().Email)}",
     Department: "",
     DisplayName: User().FullName,
     Email: Lower(User().Email),
     JobTitle: "",
     Picture: ""
    }

     

  • VishalJhaveri Profile Picture
    1,167 Moderator on at
    {
     Claims: $"i:0#.f|membership|{Lower(User().Email)}",
     Department: "",
     DisplayName: User().FullName,
     Email: Lower(User().Email),
     JobTitle: "",
     Picture: ""
    }

    Person type of column patches in a different method. Please try the above piece of code. Also if you need any help in the CRUD Operations using PATCH, refer this 5 part blog series.
    Master CRUD Operations in Power Apps : Part 4 (inkeysolutions.com)

  • Jandal_Power Profile Picture
    101 on at

    This worked perfectly. Thank you very much. I have much to learn 😀

  • Jandal_Power Profile Picture
    101 on at

    Thank you very much. I will give this a read 😊

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
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard