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 :

Clone Entity Record Extension Method

Savaco Business Applications Profile Picture Savaco Business App... 160

In addition to the GetAttributeAliasValue entity extension method we provide you with another handy method… The cloning of entity records.

This method will enable you to create a perfect clone of any entity record.

Here’s how it’s done!

 

Usage

Entity account = OrganizationService.Retrieve("account", Guid.Parse("6a7cb8d1-7038-ea11-a813-000d3a385a1c"), new ColumnSet(true));
Entity clone= account.Clone();
Guid cloneId = OrganizationService.Create(clone);

This can be used on both early as late bound entity records, as all of your generated classes will inherit from the Entity class!

Het bericht Clone Entity Record Extension Method verscheen eerst op Thrives.


This was originally posted here.

Comments

*This post is locked for comments