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 DefaultSelect...
Power Apps
Answered

ComboBox DefaultSelectedItems from SharePoint Single Line of Text

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello

 

I have the below in the DefaultSelectedItems for a ComboBox:

 

Split(LookUp('Assignments-Cases',Reference=PAReference).Departments,"; ").Result

 

Which works well as the Departments field is a Single Line of Text within SharePoint where values are separated by a semi-colon ;

 

PowerApps is pulling the values back as Result - see below:

 

burgett94_0-1598688298421.png

 

However, this is not populating the ComboBox and is still blank:

 

burgett94_1-1598688349667.png

 

Whereas I would expect it to be returning as:

 

burgett94_2-1598688376360.png

 

Please could someone assist - thanks in advance!

 

Thanks

 

Bradley

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    What is your Items property of the ComboBox?

    For DefaultSelectedItems to function properly, the signatures of your items must match the signatures of the records in the Items property.

    In your case, you are setting the DefaultSelectedItems to a table of single column records with the column name of Result.  If that is not what your Items property looks like (single column table with column name of Result), then they will not match.

     

    Also, if you have trailing semi-colon on your data, the Split function will end up with a blank record and your results will be there, but not actually be selected.

    A quick workaround on that is to change your formula to this:

    Filter(Split(LookUp('Assignments-Cases',Reference=PAReference).Departments,"; ").Result, !IsBlank(Result))

     

    But again, the signature of the DefaultSelectedItems and the Items property must still match.

     

    I hope this is helpful for you.

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