web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / How to – Clone a record in ...

How to – Clone a record in Dataverse / Dynamics 365 (C#)

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee
Here we will be cloning the below contact record – For it, we can make use Clone method of EntityExtensions class If we run the below code, we will get the “Cannot insert duplicate key” exception. Because we need to set the ID for the newly cloned record to either empty or a new GUID. … Continue reading "How to – Clone a record in Dataverse / Dynamics 365 (C#)"

This was originally posted here.

Comments

*This post is locked for comments