web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    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.

  • Verified answer
    David Jennaway Profile Picture
    14,065 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

  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    11,401 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

  • Suggested answer
    ashlega Profile Picture
    34,477 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?

  • Ashish Moradiya Profile Picture
    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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans