Skip to main content

Notifications

Announcements

No record found.

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

How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

(0) ShareShare
ReportReport
Posted on by 20

I created a new field on Warehouse shipment Line and want to push it on Posted Sales shipment line as well, Is there a way?

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    Then you can try for Posted Sales Shipment Line in same codeunit 5763

    OnAfterSalesPost(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; SalesHeader: Record "Sales Header"; Invoice: Boolean)

  • jmtugade Profile Picture
    jmtugade 20 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    The Line table of Posted Sales Shipment is Sales Shipment Line. On the Event above, the table being processed is Posted Whse. Shipment Line.

  • jmtugade Profile Picture
    jmtugade 20 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    Yes they fields have both the same name and Id but didn't work. I will try to subscribe to that event. Thank you.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    Hi,

    You can create your field with same id in both the table and try, if not done, You can subscribe the below event from Codeunit 5763

    local procedure OnCreatePostedShptLineOnBeforePostedWhseShptLineInsert(var PostedWhseShptLine: Record "Posted Whse. Shipment Line"; WhseShptLine: Record "Warehouse Shipment Line")
  • jmtugade Profile Picture
    jmtugade 20 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    Sorry the Event is Ship and Invoice

  • jmtugade Profile Picture
    jmtugade 20 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    Yes I created a Custom field for both of them. I added CartonNo. on both tables. I want to push through the value of CartonNo from Warehouse Management to Posted Sales Shipment. Event is when you post the Warehouse shipment doc.

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to push fields trough from warehouse shipment line to Posted Sales Shipment line?

    Hi jmtugade,

    Yes, there is s way to do this.. but you need to specify on which event you want to do this and which field you talking about in posted sales line.. have you create the custom field in both tables or just warehouse shipment line

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans