Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Add Unique constraint Key in Dynamics Nav tables

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.

  • 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,640 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

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,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans