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 / Combo Box Displaying [...
Power Apps
Unanswered

Combo Box Displaying [object Object] instead of Display Name.

(0) ShareShare
ReportReport
Posted on by 2

Hi, I am using a combox box dropdown to search users in the organization. This combo box is multi select and user can enter multiple project team member using this combox box. I am saving this information  as plain text  e.g. semi colon separated string in SharePoint List like abc@xyz.com;abc1@xyz.com;abc2@xyz.com  on click of Submit Form.

 

Problem I am facing is on Edit form, where i am trying to show this users in the combo box.  Display field of combo box is showing [object object] instead of Actual Display name. 

Here is my formula for default selected Items. 

ForAll(Split(ThisItem.'Project Team Members',";"),Office365Users.SearchUserV2({searchTerm:ThisRecord.Value,top:1}).value)

 

Items property of the combo box is set to Office365Users.SearchUserV2({searchTerm:cmbProjectMembersPeopleFinder_1.SearchText,top:6}).value.

 

It has a display field as "Display Name". 

I am not sure what is wrong here. When I enter single entry of the user (Without Split) it shows the data properly. 

 

Please help. 

Categories:
  • Jose Ramon Profile Picture
    109 on at

    I recently had to do something similar and I used the Creator kit, specifically the PeoplePicker component and I really liked it.

    In my case, in the SharePoint list, I created a People type column with multiple selection with the name Persons

     

    • In OnLoad of the screen where I have the component, I put the following:

     

    	ClearCollect(
    	 colPersons,
    	 ForAll(
    	 recordSelectedFromSharePoint.Persons As participantRecord,
    	 {
    	 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    	 Department: participantRecord.Department,
    	 Claims: participantRecord.Claims,
    	 DisplayName: participantRecord.DisplayName,
    	 Email: participantRecord.Email,
    	 JobTitle: participantRecord.JobTitle,
    	 Picture: participantRecord.Picture
    	 }
    	 )
     )

     

    • The Items property of the PeoplePicker component, I set it with the value of the collection above: colPersons
    • The PersonaKey property, I set it with the value of the field in collection above (colPersons): Email
    • The PersonaKey property, I set it with the value of the field in collection above (colPersons): DisplayName
    • The OnSearch property, I set the value:

     

    	ClearCollect(
    	 colOffice365Users,
    	 AddColumns(
    	 Filter(
    	 Office365Users.SearchUser(
    	 {
    	 searchTerm: Self.SearchText,
    	 top: 100
    	 }
    	 ),
    	 !(Mail in Self.SelectedPeople.PersonaKey)
    	 ),
    	 "SuggestionImgUrl",
    	 Substitute(
    	 JSON(
    	 Office365Users.UserPhotoV2(Id),
    	 JSONFormat.IncludeBinaryData
    	 ),
    	 """",
    	 ""
    	 ),
    	 "SuggestionKey",
    	 Mail,
    	 "SuggestionName",
    	 DisplayName,
    	 "SuggestionRole",
    	 JobTitle,
    	 "SuggestionPresence",
    	 "away"
    	 )
    )

     

    • The Suggestions_Items property, I set it with the collection above: colOffice365Users
    • To save the list item with the selected people this is what I put:

     

    ClearCollect(
    	 colPersons,
    	 ForAll(
    	 pickerUsers.SelectedPeople As participantRecord,
    	 {
    	 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    	 Department: "",
    	 Claims: "i:0#.f|membership|" & participantRecord.PersonaKey,
    	 DisplayName: participantRecord.PersonaName,
    	 Email: participantRecord.PersonaKey,
    	 JobTitle: "",
    	 Picture: ""
    	 }
    	 )
    	);
    //If recordSelectedFromSharePoint exists, Update else Create
    	Patch(
    	 SP_List_Name,
    	 Coalesce(
    	 LookUp(
    	 SP_List_Name,
    	 ID = recordSelectedFromSharePoint.ID
    	 ),
    	 Defaults(SP_List_Name)
    	 ),
    	 {
    	 Title: txtTitle.Value,
    	 Persons:colPersons
    	 }
    	);

     

     

    In this case, I do not use form to save the information, I save it manually doing a Patch.

  • hemil2687 Profile Picture
    2 on at

    Thanks for the Reply. But I don't think I have an access to Install the Creator kit in Client's Environment. Also I think this Combo box people picker works fine. Only problem now is that when multiple items are there it showing [object object].  I am not sure what is missing in this. 

  • Jose Ramon Profile Picture
    109 on at

    If your client has installed CoE Starter Kit, then they would already have it, since it is a requirement to be able to use it. I recommend you to take a look at it when you can.

    Regarding your problem, you need to put: 

    ForAll(
    	Split(ThisItem.'Project Team Members',";"),
    	First(Office365Users.SearchUserV2({searchTerm:ThisRecord.Value,top:1}).value)
    )
  • Johnolnes Profile Picture
    234 on at

    Very interested in knowing if you found a solution to this.

     

    I'm experiencing the same issue with object Object

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard