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

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,687 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard