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 / Attaching a collection...
Power Apps
Answered

Attaching a collection to an existing SharePoint item

(0) ShareShare
ReportReport
Posted on by 3

I am creating a Power Apps Canvas app. In this app I have a form that creates an item in a SharePoint list using a button: OnSelect "SubmitForm(Form1)". this creates the item but I want to also attach the consents of a table. The table data is stored in a collection and I want the data in the collection added to the item the form just created. I have an empty column in the SharePoint side called "Table Data" and I need to put the collection data into that items column

I have tried using the patch function but I'm not sure how to select the item the form just created. I can select the right SharePoint list but I'm not sure how to select the item.

Any one done this before or know the answer?

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @Rare_T ,

    On the OnSuccess of the Form

    Patch(
     SPList,
     {ID: Self.LastSubmit.ID},
     {'Table Data': YourCollection}
    )

    Note that your 'Table Data' field needs to contain the fields in the collection.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard