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 / Setting default select...
Power Apps
Answered

Setting default selected items of combobox with multiple items from the Office365Users connection

(0) ShareShare
ReportReport
Posted on by 56

Hello,

 

I'm building an automated report menu for some employees at my company. The idea is that an employee would create a report and save it so that they can access it at any time. One of the things that they select is who they're going to email the report to.

 

I have a combobox that is connected to the Office365Users connection which shows the DisplayName of each user. When the user saves their report, the email information gets saved into a sharepoint list column called "ReportEmails" like so: "BobJoe@company.com;JohnDoe@company.com"

 

The user selects the saved report name from a dropdown called ddReports. 

Using this code in DefaultSelectedValues, I'm able to pull the DisplayNames of each email from the specified report (which is saved in a SP List) and set them as the default values:

RenameColumns(

Split(

Concat(

Split(

ddReports.Selected.ReportEmails,

";"),
First(Office365Users.SearchUser({searchTerm:Result})).DisplayName,

";"),

";"),

"Result", "Value")

 

The problem is that it does not select the user item with the corresponding DisplayName, it only selects the DisplayName with none of the user data attached.

 

I'm assuming I'll need to somehow specify all of the different fields of the user in order for it to select the user item, I'm just stuck on how to do this.

 

Any help is appreciated!

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

    I found the issue. I changed this code:

    DefaultSelectedItems =

    RenameColumns(

    Split(

    Concat(

    Split(

    ddReports.Selected.ReportEmails,

    ";"),
    First(Office365Users.SearchUser({searchTerm:Result})).DisplayName,

    ";"),

    ";"),

    "Result", "Value")

     

    To this code:

    DefaultSelectedItems =

    RenameColumns(

    Split(

    Concat(

    Split(

    ddReports.Selected.ReportEmails,

    ";"),
    First(Office365Users.SearchUser({searchTerm:Result})).DisplayName,

    ";"),

    ";"),

    "Result", "DisplayName")

     

    I believe that the name of the renamed column wasn't matching the name of the field that I was trying to search by, so it wasn't grabbing the user's information.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard