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 / Using Combo Box to Pat...
Power Apps
Answered

Using Combo Box to Patch text input to SharePoint + Submit Form

(0) ShareShare
ReportReport
Posted on by 36

Hi all, 

I'm a newbie to apps, so excuse me if I don't quite understand what I'm supposed to be doing. I've created a Form attached to a SharePoint list. I've got a datacard from a SharePoint choice field ("product number"), and I'd like to accept text input in the event the product number isn't listed.

I've watched Shane Young's video here on how to accomplish that. However, I don't have a gallery to update like he does in the video, so I'm confused as to how to write the code simplt to get text input from the datacard to sharepoint. I've included a snip of the code from his video. 

Thanks in advance for your help Capture.PNG

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,411 Most Valuable Professional on at

    Hi @amac_ncheese ,

    Try this on the Button OnSelect

    Patch(
     Employees,
     {ID:Gallery1.Selected.ID},
     {
     'Favorite Color':
     {Value:ComboBox1.SearchText}
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • amac_ncheese Profile Picture
    36 on at

    Hi @WarrenBelz

    I don't have a gallery. I just a form within the app (pictured below)Capture.PNG, so what would the ID be to update SharePoint and the Form

  • Ashwin7104 Profile Picture
    671 on at

    Hey @amac_ncheese ,

     

    If the SharePoint form is an edit form, use SharePointIntegration.Selected.ID to get the ID. If there is no ID in case of new form, please use Defaults(DataSource).

     

    Patch(DataSource,Defaults(DataSource),...)

     

  • Verified answer
    WarrenBelz Profile Picture
    154,411 Most Valuable Professional on at

    @amac_ncheese ,

    It should be

    Patch(
     Employees,
     {ID:SharePointIntegration.SelectedItemID},
     {
     'Favorite Color':
     {Value:ComboBox1.SearchText}
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard