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.
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional