Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

From which event >source documents fields is getting in business central

Posted on by 161
Hi Guys,
Can anyone please let us know, like : We create the sales order & then RELEASED the sales order . And go to warehouse shipment ->Get source documents action ,and then it will open the Source documents page.
I want to know ,when we create new warehouse shipment from this Get source documents action.
From which event this Source no, is getting?
Because we need to add some more fields to Source document page ,and that field is pulled from sales order page.
Below are the fields we have added to the Source Documents page. And this Ship to name,address city ,post code is coming from that particular sales order.
Is any way to do this.
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 70,681 Super User 2024 Season 2 on at
    From which event >source documents fields is getting in business central
    Sorry I haven't tested it in detail, you can try the following event in report 5753 "Get Source Documents". You can pass the value of "Sales Header" to "Warehouse Request"
    OnAfterSalesHeaderOnAfterGetRecord("Sales Header", SkipRecord, BreakReport, "Warehouse Request");
     
    If it still doesn't work, it is recommended to try other events in this report.
     
    Hope this helps.
    Thanks.
    ZHU
  • Nil@@m Profile Picture
    Nil@@m 161 on at
    From which event >source documents fields is getting in business central
    Hi Yunzhu & Saurav Dhyani,
    I have tried many times to find this event ,but unable to get this.
    Can you please let us know.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 70,681 Super User 2024 Season 2 on at
    From which event >source documents fields is getting in business central
    Hi, You can find the required codes and events by following the steps below.
     
    Thanks
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,959 Super User 2024 Season 2 on at
    How to get Sales order-ship to fields to warehouse shipment->Get source documents page
    Hi,
     
    Look into Codeunit 5752 Get Source Doc. Outbound.
     
    This codeunit that opens up that page.
     
    Regards,
    Saurav Dhyani

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,620 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,884 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans