Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

I want to validate No. and Quantity fields of sales lines to autofill other fields depending on validation

(0) ShareShare
ReportReport
Posted on by 30

I am validating 2 fields one by one but its just calling SKU validation code not for QTY... any idea??

here is code

4237.code.PNG

  • Suggested answer
    Suresh Kulla Profile Picture
    47,789 on at
    RE: I want to validate No. and Quantity fields of sales lines to autofill other fields depending on validation

    You could validate those fields when you assigning them before the insert, why are you validating them after Insert? Anyhow for your code to work just use the Validate function without passing the value again.

    SalesLine.VALIDATE("No.");
    SalesLine.VALIDATE(Quantity);

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 691

#2
YUN ZHU Profile Picture

YUN ZHU 682 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 495

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans