cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
nchinaxs
Level: Power Up

Group multiple items in a collection to submit as a single item in a SharePoint List.

 

I have created a collection that has the list of my items. On Submission, it submits the items individually into my SharePoint List. However, i would prefer that the items are grouped as one and submitted as a single item in my SharePoint List.

 

 

RequestItem.PNG 

 

 

 

Any ideas with this?

3 REPLIES 3
Super User
Super User

Re: Group multiple items in a collection to submit as a single item in a SharePoint List.

Hi nchinaxs,

 

This would depend on the structure of your list.  What are the columns in the list?

 

Kind regards,

 

RT

nickduxfield
Level 8

Re: Group multiple items in a collection to submit as a single item in a SharePoint List.

This kind of only works if the items in your gallery have a source that is identical to the SPlist.

If it is identical, then you can simply:

 

If it is a simple Add all Items in the gallery in one single call

OnSelect:

ClearCollect(TempCollection, RequestCartGallery.AllItems);Collect(SPList,TempCollection)

Putting everything in a temp collection allows to to reverse the Collect

 

If not, and you want to update existing we can talk further.

If not, and you have differring data structures, we need to talk further.

 

Rick72
Level 10

Re: Group multiple items in a collection to submit as a single item in a SharePoint List.

Hi @nchinaxs,

 

Question: Why do you want it in one item?

 

What you want is possible but complex. You need to put it in some kind of structure (XML/JSON). And then comes the next "problem": How do you get the info out?

 

When using a shopping cart solution, you should ask yourself if you want SharePoint at all. SQL Server would for me probably be the better tool. Also a parent/child setup is needed.

 

Robot Happy Rick

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 86 members 4,105 guests
Please welcome our newest community members: