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 / Patch Function Not Sho...
Power Apps
Answered

Patch Function Not Showing All Items Chosen

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

Below I have provided the components from a Gallery, Combo Box, and SP List.
The top portion of the formula is working; However, I cannot get all of the items
chosen in the Combo Box to update into the SP List - Progress_items column.

Only one item, the last one chosen, shows rather than the three chosen.

What am I missing?

Patch Formula -

If(Client_Detail_Client_ID_Fld.Text=ThisItem.ClientID,
Patch(Client_Data_List,LookUp(Client_Data_List,ClientID=Client_Detail_Client_ID_Fld.Text),
{Progress_Count: Label3_1.Text}));

If(Client_Detail_Client_ID_Fld.Text=ThisItem.ClientID,
Patch(Client_Data_List,LookUp(Client_Data_List,ClientID=Client_Detail_Client_ID_Fld.Text),
{Progress_Items: ComboBox1.Selected.Value}));


Combo Box Control -
Phineas_3-1691859511809.png


Slider Control -

Phineas_1-1691859360199.png

SharePoint List Columns -
Phineas_2-1691859409183.png

 

 

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Is progress_items a choice column? If so should be something like

    {Progress_Items:ForAll(ComboBox1.SelectedItems As choicesMade, {Value: choicesMade.Title /*(.Title may be .something else like .Value, .Name etc depending on source of combobox*/})}
    

     

    if its a single line of text column will need to use a concat with ComboBox1.SelectedItems for example

    Concat(ComboBox1.SelectedItems, Title, "; ")
  • Phineas Profile Picture
    5,331 Moderator on at

    I tried the recommended formula. I probably crafted it wrong, as it is not working, even though no errors are thrown.
    If(Client_Detail_Client_ID_Fld.Text=ThisItem.ClientID,
    Patch(Client_Data_List,LookUp(Client_Data_List,ClientID=Client_Detail_Client_ID_Fld.Text),
    {Progress_Items: Concat(ComboBox1.SelectedItems, "; ")})))

    Phineas_1-1691867847410.png


    Also, when I try to return the items to the Gallery Combo Box (with ThisItem.Progress_Items)
    I get the error 'Expected Table Value'. The SP List column is 'single line of text'.

    Phineas_2-1691867994621.png

     

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Yah so, I don't really know what your if statement is based on so cant say much about it, way you wrong though needs the column selecgtion 

    Concat(ComboBox1.SelectedItems, Title, "; ")

     in that example Title is my column name

     

    to display this info in a combo box later you would need to split it as combo boxes display tables, not text so that would be liek this 

    Split(ThisItem.Progress_Items, ";") /* Or "; " if you include the space in the ocncat earlier */
  • Phineas Profile Picture
    5,331 Moderator on at

    I tried it with the column name and PA is giving me the error -
         'Name isn't valid. Progress_items isn't recognized'.

    Phineas_0-1691869488715.png

     

    Phineas_1-1691869566827.png


    The split DID return the one item that is being updated to the SP List.
         Split(ThisItem.Progress_Items, "; ")

    Phineas_2-1691869901272.png

     

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    ou need to go to your list settings, and click that column then look at top addrss bar where you will find the proper name to refer to it by in powerapps it likely got changed at some point

    TheRobRush_0-1691870415779.png

    TheRobRush_1-1691870448184.png

    TheRobRush_2-1691870500958.png

     

     

    portion AFTER the = is the name to refer to it by

     

     

  • Phineas Profile Picture
    5,331 Moderator on at

    Yep, I provided that in the previous post.

    Here it is again - name is 'Progress_Items', as written in the formula.

    Phineas_0-1691870790737.png
    Phineas_1-1691870851928.png

     

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    what is in the items property of your combo box? if you are including Progress_Items in your concat then the combobox items has to be a table that includes that column, it not having that column would be only way you would get that error. the second part of that concat should be which column of your combo box you want to return. So if your combobox items is just something like ["Option 1", "Option 2", "Option 3"] the formula would read Concat(ComboBox1.SelectedItems, Value, "; ")   

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Concat combines multiple rows of a single column in a table (not adding multiple text sources from different sources)

  • Phineas Profile Picture
    5,331 Moderator on at

    Eureka!
         If(Client_Detail_Client_ID_Fld.Text=ThisItem.ClientID,
            Patch(Client_Data_List,LookUp(Client_Data_List,ClientID=Client_Detail_Client_ID_Fld.Text),
            {Progress_Items: Concat(ComboBox1.SelectedItems, Value, "; ")}))

    That's the ticket to ride!

    Phineas_0-1691874205867.png

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard