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 / How to copy Table A to...
Power Apps
Answered

How to copy Table A to Table B in powerapps

(0) ShareShare
ReportReport
Posted on by 4
I have a question if you could help me.. if I have two tables with the same structure (same columns), what is the best way to patch all my records from Table A to Table B? I'm not talking about galleries, but Excel tables as database..
I got how to make it, but it's taking too much time.
 
RemoveIf(Table B; true);;
ForAll( Table A;
Patch( Table B;
{ Column 1 in Table A = Column 1 in Table B
Column 2 in Table A = Column 2 in Table B
(...)
}
)
)
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Hi @UberBera ,

    You could do this

    ClearCollect(colA,TableA);
    Collect(TableB,colA)

     

    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.

  • UberBera Profile Picture
    4 on at

    Hi @WarrenBelz !

    Thanks for your help. But, if I do what you are suggesting, my table B in Excel won't be updated, right? I'm going to create a Collection inside PowerApps, but my original Table B in Excel won't be changed..

     

    I need to copy Table A to Table B, but I need my Excel database gets this data.

  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    @UberBera ,

    Your table in Excel should be updated - Collect can also be used for adding all the records from a collection as new records in a data source providing all the fields match.

     

    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.

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard