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 - Check if bl...
Power Apps
Answered

Combobox - Check if blank or empty and populate with signed-in user

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I need to populate a combobox with the currently signed-in user, if the combobox is empty. what's the best way to achieve that?

I've tried - If(IsBlank(ThisItem.'PSS Assignment'),User().FullName

Also, I'll like to retain the ability to search.

PSS Assignment is the combobox name.

Thanks!

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @HenryXterra Could you please share the full formula you have in the Items and defaultselecteditems property of the combobox.

    Where is the formula that you had share earlier (in which control, in which property)?

    what does ThisItem refer to in that formula?

  • HenryXterra Profile Picture
    2 on at

    The data source is a SharePoint list, so the combobox is a people picker in SharePoint.

    Items: Choices([@'Virtual Lobby'].PSSAssignment)

    DefaultSelectedItems: Parent.Default

    ThisItem refers to the selected item from a gallery.

  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @HenryXterra ,

    Try to set DefaultSelectedItems property of your combo box to below formula:

    If(IsBlank(ThisItem.'PSS Assignment'),
    {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    DisplayName:User().FullName,
    Claims:"i:0#.f|membership|" & User().Email,
    Department:"",
    Email:User().Email,
    JobTitle:"",
    Picture:""
    },
    Parent.Default)

    valbaimsft_1-1625104741060.png

    Best regards,

    Allen

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard