Difference Between Replacement key, Alternate key, Surrogate key in AX 2012 and D365FO


  Replacement key, Alternate key, and Surrogate key



WHAT IS A REPLACEMENT KEY INDEX?

While a surrogate key is great for lookup and database performance, it is not useful for the end-user because it gives no indication of the table’s purpose, or what related tables it is linked to. For this reason,  Dynamics 365 Finance & Operations has added the ‘Replacement Key’ index property for tables. The replacement key index is a dropdown of alternate keys that have been specified for the table. There can be any number of alternate keys for a table but only a single replacement key. More than one field can be specified under a replacement key, and it is these fields that will be displayed to the end-user on a form instead of the surrogate key field.

A replacement key is an alternate key that the system can display on forms instead of a meaningless numeric primary key value. Each table can have a maximum of one replacement key.


The replacement key is chosen by setting the ReplacementKey property on the table. The drop-down list offers every alternate key as an available value.

WHAT IS AN ALTERNATE KEY?

A table can have any number of alternate keys. An alternate key may be a natural key or a single field primary key used in foreign or primary key relations with other tables. In either case, to set one, the user must create a new index and then set AllowDuplicates to “No” and AlternateKey to “Yes”. If AllowDuplicates is not set to “No” then AlternateKey should be greyed out and uneditable

WHAT IS A SURROGATE KEY?

In Dynamics 365 Finance & Operations, a surrogate key is the auto-generated primary key for a table in the database. The surrogate key is linked to the already existing RecId field within any table. This means that the surrogate key is a unique 64-bit integer value that is mandatory for the table and cannot be changed or have duplicates. The fact that it is a 64-bit integer (int64) value means table operations normally perform faster than other types of fields such as string fields. This is the main strength of surrogate keys.

7 comments:

  1. Are you new to stocks and cypto currency trading and want to be successful in your trade if yes then get help from the most down to earth and reliable expert trader I has been managing trading account for some time now and I can proudly say I make Good withdrawals monthly of $5000 Kindly reply back for more information on how to trade Contact via whatsapp +447883246472 email: tdameritrade077@gmail.com

    ReplyDelete
  2. I bring you all the good news... it’s really a testimony for me...I never knew my partner was cheating on me until I came across an online Wizard who help me hack his phone got me access to it without any physical contact with his phone... I could access his chats text messages and all.. from there I know another woman got pregnant for him.. he even got the woman a house where he goes to sleep whenever he told me he’s on night duty... after that I confronted him.. he wanted to lie so I show him all the proof which he can not deny... big thanks to. WIZARD BRIXTON WIZARDBRIXTON AT GMAIL DOT COM though it wasn’t easy cause it’s heartbreak but I thank god I'm able to know and find out the truth. God bless America. God bless women out here … contact him for a HACKING JOB: WIZARDBRIXTON AT GMAIL DOT COM, WHAT-APP : (+) 1807234 0428

    ReplyDelete
  3. Welcome to the future! Financing made easy with Prof. Mrs. DOROTHY LOAN INVESTMENTS

    Hello, Have you been looking for financing options for your new business plans, Are you seeking for a loan to expand your existing business, Do you find yourself in a bit of trouble with unpaid bills and you don’t know which way to go or where to turn to? Have you been turned down by your banks? MRS. DOROTHY JEAN INVESTMENTS says YES when your banks say NO. Contact us as we offer financial services at a low and affordable interest rate of 2% for long and short term loans. Interested applicants should contact us for further loan acquisition procedures via profdorothyinvestments@gmail.com

    I'm here to share an amazing life changing opportunity with you. its called Bitcoin / Forex trading options, Are you interested in earning a consistent income through binary/forex trade? or crypto currency trading. An investment of $200 can get you a return of $2,480 in 7 days of trading, We invest in all profitable projects with cryptocurrencies. We have excellent trading instruments and also support them with the best tools. Make as much as $1,000 or more every week with a starting capital of $200 to $350 You earn 100% of your initial profit every 7-14 business days and you get to do this from the comfort of your home/work. The truth is you must make profits trading in Cryptocurrency and investing in good signals with the best guidance from Crypto Coins Trading. Start investing with Crypto Coins Trading and start earning profitable interest quick without no doubt Payout weekly 100% guaranteed profit without any Hassles, It goes on and on The higher the investment, the higher the profits. Your investment is safe and secured and payouts assured 100%. if you wish to know more about investing in Cryptocurrency and earn daily, weekly OR Monthly in trading on bitcoin or any cryptocurrency and want a successful trade without losing Contact MRS.DOROTHY JEAN INVESTMENTS profdorothyinvestments@gmail.com

    categories of investment

    Cryptocurrency

    Loan Offer

    Mining Plan

    Business Finance Plan

    Binary option Trade Plan

    Forex trade Plan

    Stocks market Trade Plan

    Return on investment (ROI) Plan

    Gold and Silver Trade Plan

    Oil and Gas Trade Plan

    Diamond Trade Plan

    Agriculture Trade Plan

    Real Estate Trade Plan

    YOURS IN SERVICE
    Mrs. Dorothy Pilkenton Jean
    Financial Advisor on Bank Instruments,
    Private Banking and Client Services
    Email Address: profdorothyinvestments@gmail.com
    Operation: We provide Financial Service Such As Bank Instrument
    From AA Rate Banks, Cash Loan,BG,SBLC,BOND,PPP,MTN,TRADING,FUNDING MONETIZING etc.

    ReplyDelete
  4. CONTACT US FOR ALL KINDS OF HACKING JOBs @ We offer professional hacking services,we offer the following services;
    -University grades changing
    -Bank accounts hack
    -Erase criminal records hack
    -Facebook hack
    -Twitters hack
    -email accounts hack
    -Grade Changes hack
    Contact us on whatsapp + 1 681 532 3704
    Email- n17833408@gmail.com

    ReplyDelete
  5. if you need any hacking help just contact Ethicalhackers009@gmail.com and you will give a good testimony, you can also contact via Whatsapp +14106350697, all i can say is reach out to tem if you need and the rest will be history.

    ReplyDelete
  6. SSN DOB DL FULLZ
    ORIGINAL DL/ID FRONT BACK WITH SSN & SELFIE
    HIGH CREDIT SCORE FULLZ
    CC WITH CVV & BILLING ADDRESS
    CANADA SIN DEAD FULLZ
    UK DEAD FULLZ
    YOUNG AGE FULLZ
    FULLZ FOR KYC PUA UI SBA & TAX RETURN
    BULK FULLZ AVAILABLE UK USA CANADA
    CLONING CARD DUMPS 101 & 202
    MORTGAGE LEADS
    LOAN METHODS & CARDING METHODS

    Telegram @leadsupplier / @killhacks
    ICQ @killhacks / 752822040
    Skype|Wickr @peeterhacks
    Email bigbull0334 @ onion mail . org

    Fresh updated 2023 fullz
    Payment via crypto currency only
    Bulk quantity available

    ReplyDelete
  7. This is true. Natural herbs have cured so many illnesses that drugs and injections can’t cure. I've seen the great importance of natural herbs and the wonderful work they have done in people's lives. I read people's testimonies online on how they were cured of HERPES, HIV, diabetics etc by Dr Akhigbe herbal medicine, so I decided to contact the doctor because I know nature has the power to heal anything. I was diagnosed with HPV and Herpes for the past 3 years but Dr Akhigbe cured me with his herbs and i referred my aunt and her husband to him immediately because they were both suffering from Herpes but to God be the glory, they were cured too .I know is hard to believe but am a living testimony. There is no harm in trying herbs, visits to Contact Dr Akhigbe: Email:  Drakhigbeherbalhome5@gmail.com,WhatsApp number: +2349021374574

    ReplyDelete

Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...