Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Duplicate dataverse table

(0) ShareShare
ReportReport
Posted on by 149

Hi,

What is the easiest way to make copy of whole table (structure and data). I'm going to make an 'archive' for my main dataverse table. There is ca. 35 columns and each day ca. 200 records are added.
I know, I can do it manualy but is there any ctrl+c / ctrl+v method?
Each day, with a flow, I want to move  records older than 7 days to 'archive' table.

For regular use (requesting data 100-150 times per hour) I need data from last 7 days. Rest I just need for some statistic works so there is no need to work with all records.

 

Best Regards,

Krzysiek

Categories:
  • Redtree Profile Picture
    2 on at
    Re: Duplicate dataverse table

    Great. But how about Tables with 100.000 Entries and more. Any experience how to handle this task?

  • zabronm Profile Picture
    23 on at
    Re: Duplicate dataverse table

    The said options "5. select New Table" are not appearing in my environment . Could I be missing something? 

     

    There is an option under Table options(...): Table =>Table options(...) => Tools =>Copy schema name. I assumed this must be related to duplicating a table schema.. However, I am not sure of what to do next after that. 

     

    Can anyone please assist...

  • Verified answer
    gcmfaizan Profile Picture
    1,022 on at
    Re: Duplicate dataverse table

    Hi @knyklu ,

    You can create the table in the same environment with the same name but a different schema name. To do this you have to follow bellow steps:

    1. Select your table e.g I select Commercial Data Workflow
    2. Then Click on the Export Button from the header, and from this Select Export Data.
      gcmfaizan_1-1704127931085.png
    3. It's prepared a zip file for you containing all column names and Data Rows.
      gcmfaizan_2-1704128063561.png
    4. Unzip the downloaded from your download folder.
    5. Come back to your environment select New Table from the Header and click on Upload an Excel File.
      gcmfaizan_3-1704128208887.png
    6. Select the Excel file from your Unziped folder and wait for seconds.
    7. After a few seconds, you see the auto-created table with column name and it also contains all records as per the Excel file. 
    8. Change the Table name by clicking Edit Table Properties from the header and press Save button.
      gcmfaizan_4-1704128457281.png
    9. Cross-check the Column name and its data type, once you are done click on the Create Button from the lower right corner.
      gcmfaizan_5-1704128583509.png
    10. Now you have a copy of the table with data.

    For other User Power Automate:

    • Use Power Automate (Flow) to create a flow that runs on a schedule (e.g., daily).
    • Add a trigger that initiates the flow at a specified time or interval.
    • Use the "List records" action to get records from your main table based on your criteria (records older than 7 days).
    • Use the "Create a record" action to insert the retrieved records into the archive table.
    • Optionally, use the "Delete a record" action to remove the archived records from the main table.
    •  

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Thanks!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,609 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard