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 / Patching ComboBox to S...
Power Apps
Unanswered

Patching ComboBox to Sharepoint List??

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have a combobox with items set from a collection. However, I don't seem to be able to patch the item selected to a Sharepoint column. What kind of column do I need to simply patch the selected item? I keep getting errors like expecting TEXT when the item is a RECORD / Table etc.?

 

There must be a way to patch a combobox item to a SP column?

 

Many thanks, Justin 

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,937 Moderator on at

    Hi @jed76 ,

     

    A default patch should work for a single ComboBox Item.

    Patch(
     YourSPList,
     Defaults(YourSPList),
     {YourItemToPatch: ComboBox.Selected.Value}
    )


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • vish3027 Profile Picture
    438 on at

    @jed76 What is the column type in SharePoint and is it single select or multiselect?

     

  • jed76 Profile Picture
    on at

    Single select. The column can be anything to make the patch work! I would like to know what column type to use to enable the combobox to be patched.

     

    many thanks.

  • Gochix Profile Picture
    1,937 Moderator on at

    If the type of data will be numbers then use Number. If will be text or numbers then use single line of text.

  • vish3027 Profile Picture
    438 on at

    @jed76 If you are using Single line of text column in SP and to create new record, then use

    Patch(SPList,Defaults(SPList),{ColunName:combobox.selected.value})

    If you are using choice column in SP with single select

    Patch(SPList,Defaults(SPList),{ColunName:{value:combobox.selected.value}})

     

    Please check.

  • jed76 Profile Picture
    on at

    @vish3027 I get an ERROR when I try to use combobox.selected.value. 'Value' isn't an option? I can only select the individual field names?

  • jed76 Profile Picture
    on at

    @vish3027 actually just got it to work using combobox.selected.<fieldname>

     

    Do you know how I can set the default value for the combobox (or default selected items) to the item in the text column for this combobox. As the column is text, I don't seem to be able to use it for the default item in the combobox?

  • vish3027 Profile Picture
    438 on at

    @jed76 you can try
    DefaultSelcteditems: {Result:"Text" } or {Value:"text"}.

  • jed76 Profile Picture
    on at

    Can I do that with THISITEM? All of my other boxes patch to a collection and I set their defaultselected to "ThisItem.<columnname> but I can't do that with the text column into a combobox? Many thanks. 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @jed76,

    Have you solved your problem?

     

    Since all your Combo Boxes are patched to a collection, I think you could not use the ThisItem because you could not define the special record without a form control. I don't see any necessary for you to display default selected item in a Combo Box if you don't have a form.

     

    If you have single Combo Box to patch selected item to your collection, you should reference to the ID to define a record.

     

    In addition, DefaultSelectedItems property of the Combo Box expects table value while ThisItem.<textColumn> is a text value.

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard