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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / Alternate Keys in CRM 2015\...

Alternate Keys in CRM 2015\CRM 2016

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Let us look at a simple example to understand.

  • Suppose we have a custom entity name Demo Entity.
  • Create a new single line of text field named Alternate Key Field.
  • Create a new Alternate Key Field and specify the above field for it.

  • Click on “Create index for My Alternate Keys for entity Demo Entity” which will create an Index in CRM’s Database.
  • Let us update the following record using Alternate Key

  • Sample code

  • Updated record

  • Currently alternate key can only be defined on field type – string, integer and decimal.
  • The alternate key can be used for Entity Reference as well, wherein instead of specifying GUID we can now use alternate key.

Hope it helps..


Filed under: CRM, CRM 2015, CRM 2016, Microsoft Dynamics CRM Tagged: CRM, CRM 2015, CRM 2016, CRM 2016 Update 1, Microsoft Dynamics CRM

This was originally posted here.

Comments

*This post is locked for comments