Skip to main content

Notifications

Announcements

No record found.

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

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

Posted on by 22

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

  • Tech-Lucky Profile Picture
    Tech-Lucky 796 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

    Most Welcome

  • Jim Oskarsson Profile Picture
    Jim Oskarsson 22 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

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

  • Verified answer
    Tech-Lucky Profile Picture
    Tech-Lucky 796 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

    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
    Jim Oskarsson 22 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

    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.

  • Suggested answer
    Tech-Lucky Profile Picture
    Tech-Lucky 796 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

    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
    Jim Oskarsson 22 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

    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
    Tech-Lucky 796 on at
    RE: Ship-to address on sales order changes to customer address when "Custom Address" is selected

    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.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans