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

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: How to change name of primary field of an entity once it is created by doing changes in xml?

    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.

  • Guido Preite Profile Picture
    Guido Preite 54,073 Moderator on at
    RE: How to change name of primary field of an entity once it is created by doing changes in xml?

    why you don't just change the label?

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

    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?

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: How to change name of primary field of an entity once it is created by doing changes in xml?

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

    mark my answer as verified if helpful

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: How to change name of primary field of an entity once it is created by doing changes in xml?

    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
    Guido Preite Profile Picture
    Guido Preite 54,073 Moderator on at
    RE: How to change name of primary field of an entity once it is created by doing changes in xml?

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans