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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Ship-to address on sales order changes to customer address when "Custom Address" is selected

(0) ShareShare
ReportReport
Posted on by 120

One of our customers is complaining about the way custom ship-to address works on sales orders.

When they select "Custom Address", they want the system to suggest values from the default shipping address and be able to change them. Now the system suggests values from the customer's billing address which is often not an address that is used for shipping.

How can we change this behaviour?

Thanks,

Jim

I have the same question (0)
  • Suggested answer
    Tech-Lucky Profile Picture
    1,267 Super User 2025 Season 2 on at

    you need to explain your issue in more detail as I understood from your query is u have a customized field as a Custom address where the shipping address should be suggested as a lookup but currently the Billing addresses are suggested. if I understood correctly then this is the issue at the customization level may be a wrong lookup or the wrong code is placed to suggest the addresses.

  • Jim Oskarsson Profile Picture
    120 on at

    We have not customized anything. What I meant is the "Custom Address" alternative in the Ship-to dropdown that is shown on the image below.

    When this alternative is selected, Business Central shows the shipping address fields and populates them with the customer's billing address. We want to change that so that the address is fetched from the customer's default shipping address instead (the address that is shown when "Alternate shipping address" is selected).

    pastedimage1682500689378v1.png

  • Suggested answer
    Tech-Lucky Profile Picture
    1,267 Super User 2025 Season 2 on at

    ok Understood,

    Now let me tell you how the Base system is working if you select "Alternate Shipping Address" option in the drop down then it will open a popup window with all the available ship-to codes for the customer you can choose any of them,

    but if you select the "custom address" Option in the drop-down then the system by default enters the Blank Ship to Code and make the ship to code field uneditable but the shipping address fields got enabled and uneditable with default values filled from the customer master,

    if you need to change them then you need to modify these fields manually or as you asked you need the default shipping address to be filled in these fields you need to do customization for that.

  • Jim Oskarsson Profile Picture
    120 on at

    Thanks, then I know that we can not change the default behaviour without customization .

    So the solution would be:

    a. Customizing what address BC fetches when choosing "Custom Address"

    or

    b. Making the ship-to address fields editable also when "Alternate Shipping Address" has been chosen and a saved shipping address has been fetched.

    Where can we find documentation regarding how to customize that? I have programmers that can do it but we need a point in the right direction.

  • Verified answer
    Tech-Lucky Profile Picture
    1,267 Super User 2025 Season 2 on at

    you will not find that point in the documentation but I can tell you the exact points for point a.) Your developers need to subscribe the even OnAfterValidateShippingOptions(Rec, ShipToOptions);  available on Sales Order Page.

    for point b.) your developers need to create a page extension for the sales order Card Page and use

    Layout

    {

     Modify(Ship-to Code)

     {

       Editable = True;

     }

    }

    Please Mark my Answer Varified if it helps you

  • Jim Oskarsson Profile Picture
    120 on at

    Thanks Lucky, that was exactly what I was looking for.

  • Tech-Lucky Profile Picture
    1,267 Super User 2025 Season 2 on at

    Most Welcome

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans