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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Add Unique constraint Key in Dynamics Nav tables

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • CristianAguerre Profile Picture
    147 on at

    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.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    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.

  • Community Member Profile Picture
    on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans