web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,071 Moderator on at
    RE: Business Central Extend Page- to Check Duplicate

    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,037 on at
    RE: Business Central Extend Page- to Check Duplicate

    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
    RE: Business Central Extend Page- to Check Duplicate

    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
    RE: Business Central Extend Page- to Check Duplicate

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

    These I want to check for duplicating

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,071 Moderator on at
    RE: Business Central Extend Page- to Check Duplicate

    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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,921

#2
YUN ZHU Profile Picture

YUN ZHU 2,012 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,999 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans