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 / How to Create multiple...
Power Apps
Unanswered

How to Create multiple subjects in one request -- SharePoint list item creation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi ,

I'm new to Powerapps.

I'm searching for a way to achieve multiple subjects creation in one user request.

 

We have a request list to let user raise requests. They will need to raise a request with multiple subjects and one propose.

For example, the list include subject , qty, propose column. When they raise a request, they require several subjects with its qty and using one propose.

when raise request :

1.jpg

 

I need to design a form for newing a request.

An 'add' button is available if user have mutiple subjects and qty in one request. Refer to below example.

2.jpg

Anyone have any advice for this form design?

 

Thanks

Jack

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about the data structure of your SP list?

    Do you want to achieve your needs within the custom form (created via PowerApps) of your SP list?

     

    If you want to achieve your needs within the custom form (created via PowerApps) of your SP list, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    As an alternative solution, you could consider save the multiple subjects with its qty into a Collection, then use ForAll function and Patch function to save the Collection data with same one purpose into your SP list.

     

    On your side, you could consider add two separated Text Input box (Material Ref Text Box & Requested Quantity Text box) within your app:5.JPG

     

    6.JPG

    Set the OnSelect property of the "Collect" button to following:

    Collect(
    SubjectsCollection,
    {
    MaterialRef: 'Material Ref'.Text,
    RequestedQty: Value('Requested Quantity'.Text)
    }
    )

    Within the Purpose Text box, type the purpose. Set the OnSelect property of the "Patch" button to following:

    ForAll(
     SubjectsCollection,
     Patch(
     'YourSPList',
     Defaults('YourSPList'),
     {
     'Material Ref': SubjectsCollection[@MaterialRef],
     'Requested Quantity': SubjectsCollection[@RequestedQty],
     Purpose: PurposeTextBox.Text
     }
     )
    )

    Note: Please consider create a standalone canvas app based on your SP list, then configure it as above I mentioned.

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

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Kris Dai,

     

    Sorry for the late response. I will try and let you know if it works.

     

    Btw, may i ask if it's possible we can save the collection with the same response to one item in SP list? 

     

    I have a Flow for this list , every time one item created will trigger the flow. If the collection would be saved as multiple items, the flow will be triggered multiple times. it will really cause the duplicate work.

     

    any suggestion for this?

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi , @v-xida-msft 

     

    It works. And I can collect the batch data into one table. Thanks for the help.

     

    And I have another issue about how to create the batch items in SharePoint.

     

    For example, we have several columns for each items , A,B,C,D,E,F,G,H,I. But we have batch for only A,B,C,D.

    So it means once submit, we have following collection items need to be created in SharePoint.

    (A,B,C,D,E,F,G,H,I)

    (A1,B1,C1,D1,F,G,H,I)

    (A2,B2,C2,D2,F,G,H,I)

    (A3,B3,C3,D3,F,G,H,I)

     

    The attached screen shows the exact columns in the request form. The above five is the batch information, others are same in each item.

     

    We have a sharepoint named 'Sampling Request List' , how can we use onselect of submit button to add the batch items to sharepoint list?

     

    Thanks!

    Jack

     

    1.jpg

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard