Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

How do I set a default Location Code within a Sales Order's item line for each Item when an Item is selected?

(0) ShareShare
ReportReport
Posted on by 101

Goal: My contact wants to have a specific location to show up automatically on a Sales Order Item Line depending on the item selected.

For example, if I select ITEM1 as the item code, then LOCATION1 would show up with their defaulted ticked bin as described on the Bin Content page.
When the contact selects ITEM2 as the item code, then LOCATION2 would show up with their defaulted ticked bin as described on the Bin Content page.

pastedimage1661842211649v1.png

Current Version: 20.2.41144.42006

Any help is much appreciated.

  • Verified answer
    Amit Baru Profile Picture
    Amit Baru 3,027 on at
    RE: How do I set a default Location Code within a Sales Order's item line for each Item when an Item is selected?

    Hi,

    In Standard System. Location is set on Customer card. As per your requirement, this is not available in system, 

    Regards

    Amit Sharma

    www.erpconsultors.com

    https://linkedin.com/in/amit-sharma-94542440

    Press Yes if info is useful.

  • Verified answer
    Ben Baxter Profile Picture
    Ben Baxter 5,142 Super User 2025 Season 1 on at
    RE: How do I set a default Location Code within a Sales Order's item line for each Item when an Item is selected?

    This is not available in the base software.  The Location is determined by the Customer (populates Sales Header) or the Location Code established on the Sales Header.  The lines will inherit the Location Code from the Sales Header as they are entered.

    You would need to write an extension (modification) to define a default Location (new field, looks up to Location Table) on the Item table (visible on Card), then have the system pull in this value when the Item No. is entered (validated) on the Sales Line.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: How do I set a default Location Code within a Sales Order's item line for each Item when an Item is selected?

    Hello,

    If you do not get further traction from the community, feel free to raise this issue to Microsoft via your partner or CSP or ask your partner for assistance.

    Thanks.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans