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 :
Small and medium business | Business Central, N...
Suggested Answer

Business Central Extend Page- to Check Duplicate

(0) ShareShare
ReportReport
Posted on by 10

I have a Sale Price Existing records.

pastedimage1662178884621v1.png

While record updating , Want to check if Sales Code.Value and Unit of Measure Code.value exists

If exists then want to show a message and restrict save

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    The primary key in this table consist of these fields:

    "Item No.", "Sales Type", "Sales Code", "Starting Date", "Currency Code", "Variant Code", "Unit of Measure Code", "Minimum Quantity"

    So the system will automatically restrict two records with the same primary key.

    So if sales code and unit of measure are the only thing you enter in your sales price list the system will handle this for you with out the need for the customization you ask for.

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    According to its primary key, system automatically restrict duplicate records. If out of the box requirement, then you will need customization.

    Regards

    Amit Sharma

    www.erpconsultors.com

    https://www.linkedin.com/in/amit-sharma-94542440/

    Press YES if info is useful.

  • Check if receord exist Profile Picture
    10 on at

    Possible to share a method we can use to check for validation with multiple column check

  • Check if receord exist Profile Picture
    10 on at

    Item No. , Sales Type ,Sales Code, Unit of Measure Code, Variant

    These I want to check for duplicating

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    As i tried to explain to you, that method is called a primary key and is built into the system. So if you teach your users to only register the data in the price list that is required for your pricing the system will handle it for you.

    Money and energy is better spent on training users than coding these kind of requirements for this kind of table.

    Building something that compromises the function of the primary key on a table in the base application is never a good idea.

    I am sorry if you are not getting the answer you are looking for but instead i offer you my best advice based on my years of experience working with Business Central.

    Because something has a technical solution, it does not mean that it is a smart thing to do.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 676 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 483 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans