web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Save data displayed in...
Power Apps
Answered

Save data displayed in a gallery to a SharePoint list

(0) ShareShare
ReportReport
Posted on by 351
Hi Community,
 
I have a gallery connected to an Excel spreadsheet stored in SharePoint. Using text input, I filter the data in a column called ID to view data for: Name, Code, and Total. I also inserted a dropbox into the gallery to select "yes" and "no."
 
The gallery is made up of four labels: Label 1 shows the ID, Label 2 shows the Name, Label 3 shows the code, Label 4 shows the Total, and the dropbox allows you to select "yes" or "no."
 
This is how it looks, for example, when I select ID 1 and ID 4. Depending on the ID, 1, 2, 3, 4 or 5 records (data rows) are displayed.
 
 
Is it possible to load the information shown in the table into a Sharppoint list using the Patch function associated with a button?.
 
I have my list with the Title column to enter the ID, and another column with the comments name to concatenate and enter the rest of the data, but since only the data from the last row is being recorded. This is what I see in the sharepoint column for ID1: NO T43E 3456GGG 31, and I need to see: YES A345F FFGSFDG 10/YES S34G SDDFGG 5/YES 1DD3 SFDDGG 2/ NO T43E 3456GG 31.
 
     Patch(
    'NameShpList';
    Defaults('NameShpList');
    {
    Title:'Label1'.Text;
    'Comments': Concatenate("Received": 'Dropbox'.SelectedText.Value;" ";" ";'Label2'.Text;" ";'Label3'.Text;" ";'Label4'.Text
   
        })
Categories:
I have the same question (0)
  • Verified answer
    MS.Ragavendar Profile Picture
    5,036 Super User 2025 Season 2 on at
     
    Based on my understanding of the problem statement, I am proposing this solution.
     
    You want all the items in the gallery needs to concat right (i.e. ES A345F FFGSFDG 10/YES S34G SDDFGG 5/YES 1DD3 SFDDGG 2/ NO T43E 3456GG 31.,) try this.
     

    Patch(

        'NameShpList',

        Defaults('NameShpList'),

        {

            Title: TextInputID.Text,  // Use your actual ID input control name

            Comments: Concat(

                Gallery1.AllItems,

                DropDown1.Selected.Value & " " & Label2.Text & " " & Label3.Text & " " & Label4.Text,

                " / "

            )

        }

    )

    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • Francisco77 Profile Picture
    351 on at
     
    Thanks for your help¡.
     
         
     
  • Suggested answer
    MS.Ragavendar Profile Picture
    5,036 Super User 2025 Season 2 on at
     
    A quick follow-up to see, does the suggestion worked for you or still you were looking for any other approaches or assistance.
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
     Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard