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)

How to change name of primary field of an entity once it is created by doing changes in xml?

(0) ShareShare
ReportReport
Posted on by

Hi,

How to change name of primary field of an entity once it is created by doing changes in xml of its solution? 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    it's not possible to change the name of the primary field after the entity is created.

    the only way it to delete and recreate the entity.

  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at

    Answer is you cant do this.

    Schema names are locked on creation, due to the number of dependencies that are generated as the system is customized.

    Whilst you could attempt a manual edit of the solution file its not supported & even if you get it work, it will probably be a bit a pain, and you run the risk that you generate problems for yourself further down the line. The customisations directly affects a large number of elements, including the database, and it’s pretty difficult to predict the exact consequences as so much functionality is wrapped up implementations we have no control over. If you do run into those problems Microsoft may be less than helpful as you would be unsupported.

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    you will have to delete and recreate it - end of the story :)

    mark my answer as verified if helpful

  • Community Member Profile Picture
    on at

    I can try that on different organisation ,can you explain me what and where i need to make changes in  solution xml to change primary field name of entity?

  • Guido Preite Profile Picture
    54,086 Moderator on at

    why you don't just change the label?

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Purnima,

    you would probably have to create a solution - add the entity to it.

    download the solution and extract it - once extracted , you will see customization.xml

    in that try to locate "Entity" tag - you should have the field.

    i agree with Guido - you can change the label only.

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