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 / Combo Box Defaultvalue...
Power Apps
Answered

Combo Box Defaultvalueselected issue

(0) ShareShare
ReportReport
Posted on by 95

Hi All,  

I have a combobox, I want to display sharepoint list item to default selected value. If list item not  exists it should be bind the data from azureAd.

 

DefaultSelectedItems: LookUp(SPLIST,ID=Gallery.Selected.ID).Name

ClearCollect(colName,AzureAD.GetGroupMembers("GuId").value);

Items: colName

 

Im able to see the azureAD items combobox but DefaultSelectedItems not working as expected.

 

Can someone help me on this scenario.

 

 

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @BKGOUD ,

    You can Use the Like below.
    Please remove .Name from the Last. coz comboBox DefalutSelectedItem expect the Table value.

    VijayTailor_0-1601836089306.png

    Thanks,
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

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

    Hi @BKGOUD :

    Could you tell me:

    • What is the combo box's Items property?Is it 'colName'?
    • Do you want this combo box to select users whose displayName is LookUp(SPLIST,ID=Gallery.Selected.ID).Name by default?
    • What is 'Name' 's datatype?Is it Text?

    I assume that my assumption is true.

    Firstly,let me explain why you encounted this problem.

    The key is that the data structure of  ‘LookUp(SPLIST,ID=Gallery.Selected.ID).Name’ and the records in ‘colName’ is different.

    Sendly,I suggest you try this solution:

    Set the combo box's DefaultSelectedItems property to:

    LookUp(colName,displayName=LookUp(SPLIST,ID=Gallery.Selected.ID).Name)

    Best Regards,

    Bof

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 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard