Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Recreating a custom entity

(0) ShareShare
ReportReport
Posted on by

Wanted to know if there is a an automated/reliable way to recreate a custom entity with modifications. E.g. If I want to disassociate queues (non-editable property) from an already created custom entity, is there any easy/reliable way to do this? Like in databases, we just drop the table and recreate it by re-running the modified script :)

*This post is locked for comments

  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at
    RE: Recreating a custom entity

    You can recreate entity by using code.. which is supported way..

    first you need to retrieve entity metadata from which you want to recreate entity, and pass the same information for entity create request..

    Here is code to retrieve entity metadata..

    msdn.microsoft.com/.../gg509032.aspx

    and here is code sample to create entity

    msdn.microsoft.com/.../gg509071.aspx

    msdn.microsoft.com/.../gg509014.aspx

    Similar code you will find in MS CRM SDK also..

  • Community Member Profile Picture
    on at
    RE: Recreating a custom entity

    The intent of my question was to figure out if there is any way of re-creating the entity quickly without having to delete and re-create it from scratch. Something similar to the response below. I did not intend to create the entity the unsupported way or from the DB directly.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Recreating a custom entity

    Thank you Guido Preite. This is the exact confirmation I needed to avoid recreating the solution/entity from scratch. 

  • Mahadeo Matre Profile Picture
    17,021 on at
    RE: Recreating a custom entity

    Entity creation or deletion should be done through crm ui or sdk..from database it is not suuported..if you delete from database it will affect on crm operations and might crm stop working..

    so better approach is create new entity with supported way

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans