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 do I save data fro...
Power Apps
Unanswered

How do I save data from Collections to SharePoint

(0) ShareShare
ReportReport
Posted on by 6

I want to save data from Collections to SharePoint by pressing the save button once.
By saving data from every row of Collections into SharePoint.
What code do I need? Please help me.

 

Picture 220407-1  is the data in Collections.

220407-1.PNG

Picture 220407-2 is a window showing data in Collections.

220407-2.PNG

Picture 220407-3 shows SharePoint that wants to save data from Collections.

220407-3.PNG

 

 

Could you help me please.

Categories:
I have the same question (0)
  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @Pariyes 

    You can use the ForAll function to loop through each items in your Collection. Try the code below:

     

    ForAll(YourCollectionName,
    
    Patch(YourDataSourceName,Defaults(YourDataSourceName),
    
    {
    	L2CodeMat: L2CodeMa...,
    	L2DescriptionOR: L2DescriptionOR,
    	L2LeadTimeOR: L2LeadTimeOR,
    	L2MOQ: L2MOQ...,
    	L2QtyOrder: L2Pqty...,
    	L2UnitOrder: L2Unit...,
    	XL2PriceOrder: L2Price...,
    	L2Stock: l2Stoc...
    }
    )
    );

    Note: Some column names have an ellipsis (...) because I could not see the columns name.

     

  • EddieE Profile Picture
    4,641 Moderator on at

    @Pariyes 

    Assuming your columns in the collection match the columns in SharePoint you can simply do this

     

    Collect( DATA-P_MALOX_Thailand, L2OrderMat)

     

  • Pariyes Profile Picture
    6 on at

    Thanks You, I'll try the method you suggested. then i will update again.

  • Pariyes Profile Picture
    6 on at

    Thanks You, I'll try the method you suggested. then i will update again.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard