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

New to business central, how to modify Currency Code in Requisition Line

(1) ShareShare
ReportReport
Posted on by 6

 
I added a Currency Code field to the Item Vendor table so that when this field is changed (e.g., to USD), it also updates in the Requisition Line table. This allows a vendor to use a different currency code for an item without changing their default currency code. My question is how to implement this, as I'm very new to this environment and missing the underlying logic.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,908 Super User 2026 Season 2 on at
    Hi, Just add the update logic in the OnValidate (Field) Trigger of this new field.
    OnValidate (Field) Trigger
     
    Hope this helps.
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    27,613 Super User 2026 Season 2 on at
  • Verified answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at
    hi,
     
    see this
     
    tableextension 50100 "Item Vendor Extension" extends "Item Vendor"
    {
        fields
        {
            field(50100; "Currency Code"; Code[10])
            {
                trigger OnValidate()
                begin
                    UpdateRequisitionLineCurrencyCode("No.", "Currency Code");
                end;
            }
        }
        local procedure UpdateRequisitionLineCurrencyCode(ItemNo: Code[20]; CurrencyCode: Code[10])
        var
            RequisitionLine: Record "Requisition Line";
        begin
            //INSERT YOUR FILTER
            if RequisitionLine.FindSet() then
                repeat
                        RequisitionLine."Currency Code" := CurrencyCode;
                        RequisitionLine.Modify();
                until RequisitionLine.Next() = 0;
        end;
    }
     
    regards
     

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 572 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 331 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 330 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans