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...
Answered

Is any way to automatically ship a specific item?

(6) ShareShare
ReportReport
Posted on by 67
 

Hi,

I’m wondering if there is any way to automatically ship a specific item on a sales line in a sales order, without creating an extension.

Let’s say I have two items, A and B. When I create a sales order with both items, I want only item A to be automatically shipped, either by a job or some other automated process, it doesn’t matter how.

Is there any built-in functionality in Business Central that supports this, or would I need to create a custom extension?

Thanks in advance!



 
I have the same question (0)
  • Verified answer
    Jinal P. Profile Picture
    300 on at

    Hello,

    In standard Business Central, there is no out-of-the-box feature that allows you to automatically ship only specific items on a sales order without customization.

    The sales posting routines (e.g., Ship or Ship and Invoice) apply to the entire order or all eligible lines, not selectively based on item number.

    To truly automate shipping only Item A without impacting Item B:

    • You will likely need to build a small AL extension or
    • Use Power Automate (flow) to:
      • Retrieve sales orders via OData
      • Filter for lines where Item = A
      • Trigger shipment posting for those lines only (via custom API or bound action)
    Thank you, Hope this will help you.

     

  • Suggested answer
    Mansi Soni Profile Picture
    8,951 Super User 2026 Season 1 on at

    Hello,

    In Business Central, there is no built-in functionality to automatically ship specific items in a sales order without creating a custom extension. However, you can achieve this by automatic shipping of only certain items (like Item A in your case), you would likely need to develop a custom extension or modify the logic via AL code to automate this process effectively.

    Hope this answer will help you as well!

    Regards,

    Mansi Soni 

  • _Hampus_ Profile Picture
    67 on at

    Does anyone have any good recommendations or guidelines for building this extension? My initial idea is to filter out the sales lines that use a specific item. If the sales order only contains that item, I’ll ship the entire order. If there are multiple lines on the order, I’ll first check whether the other lines have already been shipped, and if they have, I’ll ship the remaining line by using the document number from the sales line. Then I’ll collect all relevant sales headers and use the Sales Batch Post Mgt. codeunit to ship the orders that meet my criteria. That said, I’m sure there are better or more efficient ways to handle this. Does anyone know of a relatively simple way to just post a single sales line? Or any suggestions for improving this approach?

  • Suggested answer
    Jinal P. Profile Picture
    300 on at
    Hello @Hampus
     
    Yes, you are on correct direction, and also below is the second idea to build this solution.
     

    1. Use a Custom Setup Table

    • Create a simple setup table to store the list of items that should be automatically shipped.
    • This makes the logic dynamic and avoids hardcoding item numbers.
    • Users can manage this list via a page in the UI.

    2. Filter and Identify Relevant Sales Orders

    • Go through open sales orders and check the lines.
    • Identify orders that contain only the auto-shippable item(s), or where all other items have already been shipped.

    3. Control Shipment Using “Quantity to Ship”

    • Business Central doesn’t allow posting a single sales line directly.
    • To achieve this, set the “Quantity to Ship” to zero for all other lines except the ones that should be posted (i.e., the configured items).
    • Then post the order as usual — only the specified items will be shipped.

    4. Automate via Codeunit or Job Queue

    • Encapsulate the logic in a codeunit.
    • You can trigger it manually via a page action or automatically via the Job Queue (scheduled process).

    Benefits of This Approach:

    • No hardcoding of item numbers — users can manage auto-shippable items.
    • Avoids modifying standard posting logic.
    • Works with standard posting codeunits (Sales-Post, Sales-Post Batch).
    • Easily scalable and safe for production.
  • RockwithNav Profile Picture
    8,941 Super User 2026 Season 1 on at
    No we dont have out of the Box. Precisely you can use Qty to ship making all other blank.
    To Automate you need a small customization.
  • Suggested answer
    YUN ZHU Profile Picture
    99,049 Super User 2026 Season 1 on at
    If it is an order, it can be posted automatically. Hope the following can give you some hints.
     
     
    Thanks.
    ZHU

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