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 :
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

I have the same question (0)
  • Mahadeo Matre Profile Picture
    17,021 on at

    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

  • Suggested answer
    Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

    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
    Mahadeo Matre Profile Picture
    17,021 on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans