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 to Sharepoint ...
Power Apps
Answered

Collect to Sharepoint List

(0) ShareShare
ReportReport
Posted on by 118

I have multiple items, some in DataCard some as stand alone canvas TextInput fields that I want to Collect into SharePoint List with OnSet of single submit button.  Everything works fine and input data is collected to SharePoint List, but each item from my app shows up as a separate row in SharePoint List.  My OnSet code structure is:

Collect(ListName, {ListColumn1:'Item1.text'},{ListColumn2:'Item2.Text},....)

How can I get all items to populate to list as single row?  Thank you in advance.

Categories:
  • KrishnaV Profile Picture
    5,023 on at

    Hi @Microbes ,

     

    Try this:

    Patch(sharepointlistname,Defaults(sharepointlistname),{spColumn1:control.text,spColumn2:control.text,........spColumn-N:contro-N.text});


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

     

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Microbes ,

    Do you want to patch data from your Edit form or individual Text Input box back to your SP List?

     

    Based on the formula that you mentioned, I think there is something wrong with it. Please consider modify your formula as below:

    Collect(
     ListName, 
     {
     ListColumn1: Item1.Text,
     ListColumn2: Item2.Text,
     ListColumn3: Item3.Text,
     ....
     }
    )

    Note: Please put all available columns inside one '{}' rather than inside individual '{}'.

     

    You could also consider take a try with the following Patch formula:

    Patch(
     ListName,
     Defaults(ListName),
     {
     ListColumn1: Item1.Text,
     ListColumn2: Item2.Text,
     ListColumn3: Item3.Text,
     ....
     }
    )

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • EG-31080115-0 Profile Picture
    118 on at

    @Kris Dai

    Perfect! Works beautifully now.  Thanks!

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard