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 / Set combo box default ...
Power Apps
Answered

Set combo box default item to the current user

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I have another question. On the home screen of one of my apps the users search for and select themselves so they can record data about what work they're doing throughout the day.

 

The combo box is a standalone input field, so not part of a form. The items property is: Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Department = "Corporate Resources, IBC").

 

I cannot figure out what piece of code to put in the DefaultSelectedItems property of the combo box.

 

I think it needs to be something like this(?): Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Mail = User().Email).

 

The screen looks like this: 

freddiejoseph1_0-1615201967462.png

 

I have seen lots of posts about doing this using sharepoint as a datasource, but not the O365 Users connector.

 

Thanks,

 

Freddie

 

Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    You said:

    I think it needs to be something like this(?): Filter(Office365Users.SearchUser({searchTerm: Self.SearchText}), Mail = User().Email).

     

    Have you tried this?

  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @Anonymous 

    You might find that just setting the DefaultSelectedItems property to this will work.

    [User().Email]

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You're very close! This will work to default select the current user:

     

    First(Office365Users.SearchUserV2({searchTerm:User().Email}).value)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks. This works perfectly!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard