I have a Sale Price Existing records.
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 a Sale Price Existing records.
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
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.
Item No. , Sales Type ,Sales Code, Unit of Measure Code, Variant
These I want to check for duplicating
Possible to share a method we can use to check for validation with multiple column check
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
https://www.linkedin.com/in/amit-sharma-94542440/
Press YES if info is useful.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,552 Super User 2024 Season 2
Martin Dráb 228,552 Most Valuable Professional
nmaenpaa 101,148