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 / Collect combobox selec...
Power Apps
Answered

Collect combobox selected value and then patch to sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey guys!

 

So I have a collection that recollects several inputs on my app. One of them is a Combobox and it is the only one that is giving me troubles. I have it on my collection like this:

 

 

Name: ComboBox1.Selected

 

 

On my sharepoint list, that column called "Referencista" has the Type: Choice.  But I cannot find a way to patch it to the sharepointlist no matter what I do. It shows me the following error:

 

errorcombobox.png

 

 

 

Referencista: Name

 

 

Do you guys have an idea of what should I do? I tried changing the type of column to text and it didn't work 😕

 

Thanks in advance!

 

Sergio

Categories:
  • eka24 Profile Picture
    20,925 on at

    Showing the full formula will help, but try:

    {Reeferencista:{Value: "WhatToPatch"}}) 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @eka24 !

     

    I tried your code but it is giving me the same error about the expected type table.

     

    This is the code that I have, only the part about Referencista is giving me troubles, 

    ForAll(Collection1, Patch(Registros, Defaults(Registros), 
    {Title: Base, Categoria: Category, Estatus: Status, Tickets: Ticket, Comentario: Comment, Fecha: Date, Referencista: Name}))

     Do you have any advice?

  • eka24 Profile Picture
    20,925 on at

    ForAll(Collection1, Patch(Registros, Defaults(Registros), {Title: Base, Categoria: Category, Estatus: Status, Tickets: Ticket, Comentario: Comment, Fecha: Date, Referencista: {value:"Name"}}))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • eka24 Profile Picture
    20,925 on at

    If you are to feed the combobox to the References. What do you have in the Items of the Combobox? Can you show the Combobox?

     

    Try;

    ForAll(Collection1, Patch(Registros, Defaults(Registros), {Title: Base, Categoria: Category, Estatus: Status, Tickets: Ticket, Comentario: Comment, Fecha: Date, Referencista: {value: Combobox1.Selected}}))

     

    Or

    ForAll(Collection1, Patch(Registros, Defaults(Registros), {Title: Base, Categoria: Category, Estatus: Status, Tickets: Ticket, Comentario: Comment, Fecha: Date, Referencista: {value: Combobox1.Selected.ColumnName}}))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    If you are to feed the combobox to the References. What do you have in the Items of the Combobox? Can you show the Combobox?

     

    Try;

    ForAll(Collection1, Patch(Registros, Defaults(Registros), {Title: Base, Categoria: Category, Estatus: Status, Tickets: Ticket, Comentario: Comment, Fecha: Date, Referencista: {value: Combobox1.Selected}}))

     

    Or

    ForAll(Collection1, Patch(Registros, Defaults(Registros), {Title: Base, Categoria: Category, Estatus: Status, Tickets: Ticket, Comentario: Comment, Fecha: Date, Referencista: {value: Combobox1.Selected.ColumnName}}))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @eka24 ! This one did the trick!

     

    Best regards!

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard