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 / Adding Power App Colle...
Power Apps
Answered

Adding Power App Collection Data to Excel Online

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I have Power App and Let me know how to send the Data in collection of my app to excel online through patch function.
whenever User Submits data it should always go to excel in new rows.

I have attached Excel Table and Collection Data also. Collection Name is "FinalData" and Excel table name is "DataTable".

I have used below Method But its adding only one row of Data in collection. Its not adding all the rows in the collection to excel

Collect(
FinalData,
{
EmployeeID: EmployeeID.Text,
Date: Date.SelectedDate,
Activity: Activity.Text,
OrderNo: OrderNo.Text,
Type: Type.Text,
Description: Description.Text,
Quantity: Quantity.Text,
Hours:Hours.Text,
Status:Status.Text
}
);

Patch(
DataTable,
FinalData
);

Notify("Data sent successfully", NotificationType.Success)



Please help me out on thisMy Excel TableMy Excel TableMy collection In appMy collection In app

Categories:
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Puneeth656 If the columns in the Excel table and the collection match you can do a bulk add/update using the patch function, Patch(excelTable, FinalData)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • ArunkumarRA Profile Picture
    2 on at

    Instead of Saving the data to collection and exporting it to excel, You can directly push the data directly into the excel file by using Patch function 

     

    Patch{excel file, defaults(excel file),{column : input field})

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Puneeth656 ,

     

    Since there are differences in the table and collection columns, you'd better use ForAll and Patch functions OnSelect of a Button control to achieve your need:

    ForAll(
     FinalData As FD,
     Patch(
     ExcelTableConnection,
     Defaults(ExcelTableConnection),
     {
     'Employee ID': FD.EmployeeID,
     Date:FD.Date,
     Activity:FD.Activity,
     'Order No':FD.OrderNo,
     ....
     }
     )
    )

     

    Best regards,

  • Puneeth656 Profile Picture
    11 on at

    I have below method But is only adding one row data in collection and not adding all the rows to excel

    Collect(
    FinalData,
    {
    EmployeeID: EmployeeID.Text,
    Date: Date.SelectedDate,
    Activity: Activity.Text,
    OrderNo: OrderNo.Text,
    Type: Type.Text,
    Description: Description.Text,
    Quantity: Quantity.Text,
    Hours:Hours.Text,
    Status:Status.Text
    }
    );

    Patch(
    DataTable,
    FinalData
    );

    Notify("Data sent successfully", NotificationType.Success)

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard