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 / lookup function on com...
Power Apps
Unanswered

lookup function on combobox not working

(0) ShareShare
ReportReport
Posted on by 263

Hi all,

 

I have a combobox that I am using to select AD usernames to then patch to a sharepoint list. 

 

The Items property is set to Distinct(Office365Users.SearchUser({searchTerm:ComboBox2_2.SearchText}).DisplayName,DisplayName)

 

The on change property is set to Patch('SPLIST',ThisItem,{Item1:ComboBox2_2.Selected.Result})

 

The above are working fine but on the default property I want the combobox to return the value that is written in the SP list. I've done a lookup but I think there might be an issue with the combobox expecting a table value?

 

Any help is welcome currently the default property has the following in this is working in a label which makes me think that the issue is unique to combobox: 

LookUp('SPLIST',Text(Date,ShortDate)=Text(DatePickerCathedral_2.SelectedDate,ShortDate),Item1)

 

thanks in advance

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

    Try wrapping your lookup in [], like this:

     

     

    [ LookUp('SPLIST',Text(Date,ShortDate)=Text(DatePickerCathedral_2.SelectedDate,ShortDate),Item1) ]

     

    You may have to modify your lookup as well

     

    [ LookUp('SPLIST',Text(Date,ShortDate)=Text(DatePickerCathedral_2.SelectedDate,ShortDate),Item1).SPColumnName ]

     

  • MJ84 Profile Picture
    263 on at

    Unfortunately this does not work... I'm guessing because the lookup is returning an item and the combobox is looking for a table?

     

    Maybe it isn't possible... ?

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Make sure you are putting this in the DefaultSelectedItems property.

  • MJ84 Profile Picture
    263 on at

    Excellent thank you I had it in the Default property 😀

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard