cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microbes
Resolver I
Resolver I

Collect to Sharepoint List

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.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
KrishnaV
Super User
Super User

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.

 

 


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,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.
v-xida-msft
Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Kris Dai

Perfect! Works beautifully now.  Thanks!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,703)