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 / Cloning a Dataverse Re...
Power Apps
Suggested Answer

Cloning a Dataverse Record in a Model Driven App

(1) ShareShare
ReportReport
Posted on by 13

I am trying to Clone a Dataverse Record in a Model Driven App. I have found a few ways of doing this by adding a command button. Then, programming the button using Power FX and utilizing the Patch function.

 

My specific question:

Is it possible to copy all the field values from the original record using a simple statement?

 

Everything I found shows every field being listed in the code, which is inefficient, especially if you have about fifty fields.

Here is an example:

Patch(Assets, Defaults(Assets),{Name: "Copy of " & Name, Vendor:ClonedProduct.Vendor, Product:ClonedProduct.Product, etc...}

 

I simply want to copy all the field values from the original record to the cloned record.

 

Categories:
I have the same question (0)
  • Suggested answer
    Jonathan Manrique Profile Picture
    2,695 on at
    Hi
     
    There is no cloning function, if you use the patch what you are doing is creating a new record and assigning values ​​to a created record.

    The same if you do it with Javascript or Power Automate, what you are doing is creating a new record and assigning the values ​​of a record.
     
    Some time ago there was a classic workflow action that allowed cloning, but I don't know if it is still available. The only thing you need to install is a solution.
     
    I left you the GitHub of the repository, the author is a recognized MVP
     
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution
    Follow me on Linkedin, I talk about Power Platform
    www.linkedin.com/in/jonathan-manrique-rios
     
     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard