web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

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

how we can multiple two fields !!

(0) ShareShare
ReportReport
Posted on by 35

I have one field in item table field x

and i need to add that field in salesline and multiply with quantity

i have added ttriger on validate on field x on saleline but iam getting zero. any suggestion

Rec.x := rec.Quantity * itemL.x
I have the same question (0)
  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at

    Hi,

    you must put in onvalidate of salesline.quantity field:

    OnValidate

    var

     xItem : record item;

     if type=type::item then begin

         xitem.get("no.");

         x := xitem.fieldx * quantity;

    begin

    end;

    Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.

    Roberto Corella

    Business Central developer

    blog: https://blog.msdyn365bc.es

    youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg

    Linkedin: www.linkedin.com/.../

    Twitter: https://twitter.com/rccorella

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 590 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 445 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 395 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans