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 84
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 63,857 Super User 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
  • Nilam Profile Picture
    Nilam 84 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 63,857 Super User 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 14,577 User Group Leader 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans