Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Business Central Extend Page- to Check Duplicate

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
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 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.

  • 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

  • RE: Business Central Extend Page- to Check Duplicate

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

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 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.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 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.

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans