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 Platform Community / Forums / Power Apps / ComboBox not populatin...
Power Apps
Unanswered

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
    Re: ComboBox not populating data correctly

    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
    Re: ComboBox not populating data correctly
    {
     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
    Re: ComboBox not populating data correctly

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

  • Jandal_Power Profile Picture
    101 on at
    Re: ComboBox not populating data correctly

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard