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 / Submit form for each e...
Power Apps
Answered

Submit form for each element of a collection

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

I am using a form to generate list elements in SP. However I want to generator several list elements, if the collection the user has created has more than one element.

 

so pseudo-Code would be:

forEach Element in Collection:

- set Element in Form.placeToBe

- submitForm

 

the result should be n list elements in the SharePoint where n is the number of elements of the collection and one column of the List has the nth element data..

 

hope it got clear what I am trying to do.

 

thanks!

Categories:
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @nlin 

     

    I created the Below collection for testing.

     

    ClearCollect(
     ColElements,
     {Title: "Element1"},
     {Title: "Element2"}
    );
    Patch(
     DataSource,
     ForAll(
     ColElements As Source,
     Patch(
     Source,
     {
     ColumnName: Source.Title
     }
     )
     )
    )

    Note: Change the Datasource and ColumnName 

  • nlin Profile Picture
    4 on at

    Hi @StalinPonnusamy 

    thank you very much. It helped to understand the correct syntax. But it revealed my actual problem, that I cannot submit my form twice (if I have two collection-items). This needs a restructuring of my app. But my initial question was solved.

    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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard