Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Add Unique constraint Key in Dynamics Nav tables

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I would like to add another keys to the table with unique constraint key. I've already added the primary key with BigInter Datatype.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add Unique constraint Key in Dynamics Nav tables

    Please can you share the code part  or reference? Becuase I am fresher in Dynamic nav.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Add Unique constraint Key in Dynamics Nav tables

    You cannot add a unique key, you need to add the code in the OnInsert Trigger of the table to check, or on the validate of that particular field.

  • CristianAguerre Profile Picture
    CristianAguerre 145 on at
    RE: Add Unique constraint Key in Dynamics Nav tables

    Jganga,

    In Navision you need to do this by code, for example in the validate trigger of the field.

    If you add new keys you can use it for order the data but no for create unique constrain.

    Best regards.

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans