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

Populate Combo Box items with SharePoint IDs

(1) ShareShare
ReportReport
Posted on by 15,687 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,256 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,687 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,256 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,687 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard