Skip to main content

Notifications

Announcements

No record found.

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

Updating Warehouse Activity Header table fields from Sales Header

Posted on by 129

Does anyone know how to auto populate fields in Warehouse Activity Header (specifically for pick), based on values in Sales Header?

I've managed to get my code working in the list page trigger for Warehouse Picks, however I need the values to update in the table itself without the need to open a page. Does anyone know which trigger I should be using, or whether there is an event that is best to use?

I've gone through quite a lot of events in the Create Pick codeunit (7312) but am yet to have any success.

  • Suggested answer
    AI123456789 Profile Picture
    AI123456789 129 on at
    RE: Updating Warehouse Activity Header table fields from Sales Header

    Thanks for the responses on this.  I managed to get it working in the end using the OnCreateWhseDocumentOnAfterSaveOldValues event in Create Pick

  • Francisco Bedolla Profile Picture
    Francisco Bedolla 1,115 on at
    RE: Updating Warehouse Activity Header table fields from Sales Header

    did you check CreateInvtPutAwayPick() on table sales header? this if you are running pick from sales doc

    or

    GetSourceDocOutbound.CreateFromSalesOrder(Rec); in same table to create shipment headers

    in page 7335 you can find CurrPage.WhseShptLines.PAGE.PickCreate; which calls procedure PickCreate() on page 7336

  • Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Updating Warehouse Activity Header table fields from Sales Header

    Are you talking about customized fields or standard fields that you want to populate.

    If it is standard fields, what fields do you have in mind?

  • Andy Sather Profile Picture
    Andy Sather on at
    RE: Updating Warehouse Activity Header table fields from Sales Header

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans