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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Changing No. Series in Warehouse Receipt Header Table

(1) ShareShare
ReportReport
Posted on by 28
Hello everyone,
I added a field named "Item Type" and depending on its value,
I want to change the No. Series of the "Warehouse Receipt Header" table (7316) before insertion, but I couldn't find any event to subscribe to.
Does anyone know the event or how to change the series number?
Thank you.
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    9,089 Super User 2026 Season 1 on at
    Hi,
     
    Did you try to use the COC on the inset method?
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • Meyssa Profile Picture
    28 on at
    Thank you for replying but do you mean overriding the Insert method or subscribing to OnBeforeInsert (which doesn't exist in my case)?
  • Waed Ayyad Profile Picture
    9,089 Super User 2026 Season 1 on at
     
    Sorry I thought you are asking about D365 FO.
     
     
    Thanks,
    Waed Ayyad
  • Suggested answer
    Alexander Drogin Profile Picture
    262 on at
    OnBeforeInsert event always exists for every table. It's a system event raised by the platform, so it doesn't have to raised from AL code, you can aways subscribe to it.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,106 Super User 2026 Season 1 on at
  • Suggested answer
    Yi Yong Profile Picture
    2,647 Super User 2026 Season 1 on at
    Hello,
    You should check and change the no series when posting the warehouse receipt.
    It will be too late to do it when inserting into posted warehouse receipt table.
     
    You can use the below event, it is called before system insert receiving no. to the receipt header.
    This event has both Header for you to change the receiving no. series and Lines for you to check the item type.
     
     
    ​[EventSubscriber(ObjectType::Codeunit, Codeunit::"Whse.-Post Receipt", OnAfterCheckWhseRcptLines, '', false, false)]
    local procedure "Whse.-Post Receipt_OnAfterCheckWhseRcptLines"(var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line")
    begin
    end;
    
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,804 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,103 Super User 2026 Season 1

#3
Kamal Khakhkhar Profile Picture

Kamal Khakhkhar 695

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans