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 / Populate Combo Box ite...
Power Apps
Unanswered

Populate Combo Box items with SharePoint IDs

(1) ShareShare
ReportReport
Posted on by 15,679 Super User 2024 Season 1

Hi everyone,

 

I want to set the source column for a combo box with SharePoint IDs. However, when I open the Primary text list via the Data pane, I notice that SharePoint ID is not a selectable option:

 

primarytextpanel.png

 

As a workaround, I duplicated the column in a collection and set the data source for the combo box to the collection:

 

 

 

ClearCollect(
 collection_name,
 AddColumns(
 sharepoint_list_name,
 "ID_Text",
 ID
 )
);

 

 

 

However, the column (ID_Text) is still not visible in the Primary text list.

 

Could anyone help?

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Heya @Amik 

    Have you tried setting the datasource for your dropdown to DataSourceName.ID instead of DataSourceName ?

    This should leave it no other option than to display the only field it has access to in the dropdown,

     

    Cheers,

    Sancho

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Thanks for the quick response @iAm_ManCat . Unfortunately the combo box returns Null when I attempt to do this on either the Collection or the data source name.

    From Collection:

    Id from collection.png

    From data source:

    ID from source.png 

  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Ah, so they changed that again - just had a quick look, after changing it to DataSourceName.ID you can then edit the advanced properties of DisplayFields and SearchFields to allow the ID to show:

    image.png

     

    image.png

     

    Hope that helps!

     

    Cheers,

    Sancho

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Brilliant this is working - thank you very much @iAm_ManCat 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard