
Announcements
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.