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...
Unanswered

Flow Custom Fields from Warehouse Receipt Line(7317) to Purch. Rcpt. Line (121)

(1) ShareShare
ReportReport
Posted on by 533

Hello Experts,

I want to transfer my custom fields from Warehouse Receipt Line (Table 7317) to Purch. Rcpt. Line (Table 121) in Business Central SaaS.

I have implemented the following approach and would like to verify whether it is the recommended approach or if there is a better alternative available.

Current approach:

Warehouse Receipt Line (7317)
        ↓
Purchase Line (39)
        ↓
Purch. Rcpt. Line (121)

To achieve this, I first copy the custom field from Warehouse Receipt Line to Purchase Line, and then allow it to flow from Purchase Line to Purch. Rcpt. Line during the posting process.

I have used the following event for this implementation:

 [EventSubscriber(ObjectType::Codeunit, codeunit::"Whse.-Post Receipt", 'OnBeforePurchLineModify', '', true, true)]
    local procedure UpdatePurchaseLines(var ModifyLine: Boolean; var PurchaseLine: Record "Purchase Line"; WhseRcptLine: Record "Warehouse Receipt Line")
    begin
        PurchaseLine."Bag Size" := WhseRcptLine."Bag Size";
    end;
I have the same question (0)

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

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 685 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 567 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans