cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Naresh
Level: Powered On

Multiple Select from SharePoint List

HI Friends,

 

I am stuck with a powerapp app creation. Hope someone can help me out.

 

I need to create an app for the SharePoint list where the user needs to enter information of multiple items and finally, all the items should be submitted at once.

 

It's like a parent item having multiple child items.

 

The user while filling the parent form should be enabled with the child form after the child items got filled then the parent item should be submitted.

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Multiple Select from SharePoint List

You won't be Collect()-ing the child item details to the parent form per se, but rather storing it in a Collection that you can display in a customized section of your parent form. A method I have used for updating a child list, If you are using the row ID for your parent list as your key to the child list then something like:

 

UpdateContext({variable_ID:Last(Collect(Parent_SPO_List, {Col1:data1.Text, Col2:data2.Selected.Value, ... })).ID}); ForAll(PowerApps_Child_Collection, Collect(Child_SPO_List,{Title:variable_ID,SPO_Col1: PA_Col1,SPO_Col2: PA_Col2, ...})

 

This will provide you with the connection you need between the Parent and Child Lists in SPO.

View solution in original post

8 REPLIES 8
Community Support Team
Community Support Team

Re: Multiple Select from SharePoint List

Hi @Naresh,

 

This could be achieved easily.

 

1. Create the auto-generated app by connecting to SharePoint list connector.

 

2. On EditScreen1, insert another EditForm, and name it Form1. Set its DataSource property to your list name, and check all the required fields.

Set the OnSelect property of the submit check mark button to:

SubmitForm(EditForm1);SubmitForm(Form1)

3. On BrowseGallery1 screen, set the OnSelect property of the "+" button to:

NewForm(EditForm1);NewForm(Form1);Navigate(EditScreen1, ScreenTransition.None)

 

4. After this, you would be able to have 2 new forms to create 2 items at the same time on EditScreen1.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Naresh
Level: Powered On

Re: Multiple Select from SharePoint List

Hope you didn't reach me. let me give you the present scenario.

 

The exact scenario was I have two lists in the SharePoint with parent and child relationship.

 

In the parent list, I have to fill the details a request for purchasing multiple items. When I select the item from the lookup field it should pop up for the quantity, the same way I have to select the multiple items from the child list along with the quantity and when I submit the request it should get the total cost and saved in the parent list. 

Highlighted
Anonymous
Not applicable

Re: Multiple Select from SharePoint List

You are going to need to update a Collection for the child list.

 

You can set up the parent form and then have a button that Navigate()s you to the child form (a custom form). To "Submit" the child form you would Collect() the details, and then possibly navigate back to the parent form, allowing the user to repeat the process, or just reset the child form and allow the user to continue adding data until they are done and then having a button to Navigate() them back to the parent form. On submission of the parent form you would need to Collect() the Child list data to your SPO list.

Naresh
Level: Powered On

Re: Multiple Select from SharePoint List

Thank you for your response.

 

Can you please let me know how to collect the child item details to the parent form.

 

Also, how to Collect() the Child list data to your SPO list.

Anonymous
Not applicable

Re: Multiple Select from SharePoint List

You won't be Collect()-ing the child item details to the parent form per se, but rather storing it in a Collection that you can display in a customized section of your parent form. A method I have used for updating a child list, If you are using the row ID for your parent list as your key to the child list then something like:

 

UpdateContext({variable_ID:Last(Collect(Parent_SPO_List, {Col1:data1.Text, Col2:data2.Selected.Value, ... })).ID}); ForAll(PowerApps_Child_Collection, Collect(Child_SPO_List,{Title:variable_ID,SPO_Col1: PA_Col1,SPO_Col2: PA_Col2, ...})

 

This will provide you with the connection you need between the Parent and Child Lists in SPO.

View solution in original post

Naresh
Level: Powered On

Re: Multiple Select from SharePoint List

 Hi @Anonymous

 

I have to bulid this for an mobile application. So. i have to add the child items in a seperate screem and collect the items information using the collection and then have to save on the final submit.

 

Will the above formula work for that screnario????????????

 

Anonymous
Not applicable

Re: Multiple Select from SharePoint List

As long as you are Collect()-ing the data to the PowerApps_Child_Collection(based on my example; you can call it whatever you want) it doesn't matter which screen you are on since Collections are global objects (within the PowerApp), which just means that every screen has access to the Collection.

Naresh
Level: Powered On

Re: Multiple Select from SharePoint List

@Anonymous

 

Thank you for your quick response.

 

I will to try to implement with your suggestion and get back to you.

 

Thank you once again this help means alot to me.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,460)