web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard