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

Community site session details

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

How to flow Custom field from Sales Order to Purchase Order

(0) ShareShare
ReportReport
Posted on by 2
Hi ALL,
 
            I want to flow the custom fields from Sales Header table to Purchase Header table by using the action created purchase order in sales order page for this i am using the event subscriber, 
 

  [EventSubscriber(ObjectType::Codeunit, Codeunit::/Purch. Doc. From Sales Doc./, 'OnCreatePurchaseHeaderOnBeforeInsert', '', false, false)]

    local procedure OnCreatePurchaseHeaderOnBeforeInsert(var PurchaseHeader: Record /Purchase Header/; SalesHeader: Record /Sales Header/; Vendor: Record Vendor)

    begin

        PurchaseHeader./PI Created By/ := SalesHeader./PI Created By/;

        PurchaseHeader./SalesPerson CSR/ := SalesHeader./SalesPerson CSR/;

    end;

But it is not working, in the debugger also not going to this break point, is there any event for doing this, can anyone help me on this, Thanks for your advices.

 

Thanks & Regards,

Satish

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans