Skip to main content

Notifications

Dynamics 365 general forum
Answered

About alternate key

Posted on by 50

Hi all,

When a create an alternate key for a custom entity, I found that the key cannot be Contact as it's logical and cannot be used in a key.

But why it can be used to create an alternate key for Account entity? E.g. Parent Account / Primary Contact.

It's a bit confused for me and Hope to get an answer.

Thanks in advance.

  • Suggested answer
    Niheel Profile Picture
    Niheel 50 on at
    RE: About alternate key

    Thanks, Nya and Bipin. Thanks for the test.

    I just get confused with the the AttributeMetadata.IsLogical property in the link Nya provided.

    Didn't notice the sub-link, so now the problem is solved.

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: About alternate key

    Hi,

    I have a custom entity Employee and I have create Contact lookup for this custom entity.

    I am able to create an alternate key with Contact lookup field and it works.

    CR36.PNG

    What is it that you are trying to achieve and not able to do?

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Verified answer
    Nya Profile Picture
    Nya 29,054 on at
    RE: About alternate key

    Hi Niheel,

    Do you mean the statement in Create alternate keys?

    pastedimage1640667467871v1.png

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans