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 to get Share...
Power Apps
Answered

Combo box to get SharePoint ID

(0) ShareShare
ReportReport
Posted on by 710

Hi,

I am using Combo box for selecting SharePoint  data. While I have selected items in Combo box it's collect SharePoint item.

I need to update SP list. Existing items (via SharePoint)   not get ID..
image.png

image.png

image.png

image.pngimage.pngimage.png

 

 Let me know.. Why default item in combo box selected items not get it's ID? 

Thanks in Advance

Categories:
  • AsanKani Profile Picture
    710 on at

    Hi, @RandyHayes  Kindly Help to resolve.  ☹️

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @AsanKani 

     

    For your Items property...I wouldn't concern myself with ShowColumns in this case...it's fairly worthless in this situation.

    Your Items property:  yourSharePointList

     

    Your other formula (not sure where you have this formula - or why a collection is needed):

    Collect(AuthorityDesignation, ForAll(ComboBox_Authority_Designation.SelectedItems, {Id: ID, Value: Title}))

     

    I hope this is helpful for you.

  • AsanKani Profile Picture
    710 on at

    @RandyHayes 
    Here I am using combo box is in SharePoint Lookup field. So, it's required ShowColumn. (Last one post you are the give the solution about my problem using ShowColumn.
    FYI : https://powerusers.microsoft.com/t5/Building-Power-Apps/ComboBox-Multi-Select-DefaultSelecteditems-duplicated/m-p/841787#M267734 )

    Collection also required for same Lookup field type to update SP list.

    I am here using Lookup Field.. So your above formula is not working data image.png

    Any other idea ?

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @AsanKani 

    Got ya!  So in that post we were concerned over setting the DefaultSelectedItems from the Lookup Column Authority_Designation.  The trick was to get the Items records to "look" like the Lookup records {Id:  ,Value: }

    So yes, if you want that to occur as it was, then set the formula back to:

    RenameColumns(ShowColumns(yourSharePointList, "ID", "Title"), "ID", "Id", "Title", "Value")

    That will keep the DefaultSelectedItems to match to the lookup column results.

     

    Your change on the other formula is:

    Collect(AuthorityDesignation, ComboBox_Authority_Designation.SelectedItems)

    Since the Items are already set to what you need, there is no other conversion needed.  It will get a table of records with the {Id: , Value: } type record.

     

    If you get an error from that. I would look at any other place you might be setting the AuthorityDesignation collection (and is there a need for a collection even?) to consider any mismatches on record signatures.

     

     

  • AsanKani Profile Picture
    710 on at

    @RandyHayes  Thank you.

     

    I have made a mistake in my formulae.. RenameColumns(ShowColumns(yourSharePointList, "ID", "Title"), "ID", "Id", "Title", "Value"). ----> that is "Id" not "id".. 
    Now it's working
    Now, I am clear.. 😇

    Sorry to delay reply, I am little busy in another one project.

    Thanks again.. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard