web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collection is not pull...
Power Apps
Unanswered

Collection is not pulling data into SharePoint columns

(0) ShareShare
ReportReport
Posted on by 101

I have created a repeated table in my Power App form.  The repeated table is connected to a collection that I created.  The form is connected to a SharePoint list and the data collection I mentioned.  I want to pull the data from the collection to my SharePoint list.

 

Repeated Table (data source: DefectiveCollection (collection):

MicroMarc365_1-1678893960542.png

OnSelect of the Add icon: Collect(DefectiveCollection,{MItem: Text(Last(DefectiveCollection).MItem + 1),RefDes:"",Quantity:"",DefectCode:Choices([@'DMR - List'].DefectCode),Comments:""})

This adds a row to the repeated table.

 

Is there a way that I can pull the data from the collection and have it populate to my SharePoint list? 

 

Categories:
I have the same question (0)
  • Murillo-Mariano Profile Picture
    on at

    Okay, for send the information from one collection to sharepoint, is required the collection columns have the same internal name as the sharepoint column.

     

    To check the internal name of a sharepoint column, you have to open the list settings > open the column details > check in the end of URL the internal name, follow an example:

    MurilloMariano_0-1678895938290.png

     

     

    After make the verification, put all columns in the collection with the same internal name of the column in sharepoint, and for submit the collection, follow this formula:

     

    Patch(DATABASE, COLLECTION)

     

    If the ID already exists in sharepoint, the line will be replaced. If not exists, the line will be added as new.

     

    If it helped you, please mark this as an answer!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @MicroMarc365 

    There are three ways to add data to the datasource list.

    1. Patch the data as it is added to each control in the OnChange property of the control.
    2. Patch the entire row once the data has been added
    3. Add the data to a collection and then use Collect(datasource, collection) to add new fields to the datasource or if the data is being modified use Patch() to add all the rows at one time.  

    If you are simply adding new rows to the datasource (not editing/modifying already existing data, simply have a button to add all the rows would have an OnSelect property of: Collect(yoursplist, DefectiveCollection). 

  • MicroMarc365 Profile Picture
    101 on at

    When patching, it should be Patch(SharePointList, DefectiveCollection)?

  • Murillo-Mariano Profile Picture
    on at

    If the collection columns matches with sharepoint columns internal names, yes!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @MicroMarc365

    The best way to ensure the collection matches is to initialize it with

    Collect(collection, datasource); Clear(collection)

    The columns will be correct and there will not be any records in the collection. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard