Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Is it possible to changing primary field of custom entity after it has been created?

(0) ShareShare
ReportReport
Posted on by 515

Hello,

I have many custom entities for that I need to change primary field, I already know creating workflow that will update values of primary field by coping it from different field. But I don't want to do that. Is there any way to change primary field of custom entity after it has been created?

Regards,

Ashish

*This post is locked for comments

  • Ashish Moradiya Profile Picture
    Ashish Moradiya 515 on at
    RE: Is it possible to changing primary field of custom entity after it has been created?

    Hello,

    I need to change primary field to different field only. any how (for e.g export entity -> delete -> import entity) it is possible than it is very much helpful for me as I have many entities for that I need to change primary field.

    thanks,

    Ashish

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Is it possible to changing primary field of custom entity after it has been created?

    Hi Ashish,

     are you trying to change the name of the primary field (that would not be possible), or are you trying to change the value stored there?

     If it's the value, you can use a workflow, you can use excel export/import, you can use SSIS.. what's wrong with the workflow?

  • Verified answer
    Gee Bee Profile Picture
    Gee Bee 11,397 on at
    RE: Is it possible to changing primary field of custom entity after it has been created?

    Hi

    You cannot change it after creating it. You can use other fields as keys.

    Please refer the following as well:

    blogs.msdn.microsoft.com/.../microsoft-dynamics-crm-changing-the-primary-field-in-custom-entities

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Is it possible to changing primary field of custom entity after it has been created?

    After it has been created, the only changes you can make to the primary field metadata are to change the size, or change the requirement level

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to changing primary field of custom entity after it has been created?

    The primary field always remains the same. However you can mark other fields as alternate keys to keep uniqueness.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans