Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Salesperson Code on an order defaults to what is set on the Bill-To Customer account instead of the actual customer account

Posted on by 20

Hey guys,

We have a few accounts that have their headquarters which is the main Bill-To Customer Account to multiple branches. These branches would have different salesperson codes set against them. However, when a new sales order is created for these individual branches, the salesperson code on the sales order defaults to whatever is set against the main bill-to customer account (which is generally blank).

Is there a way to change this behaviour so the sales order defaults to the salesperson code that is set against the actual customer that is placing the order and not the head office?

Categories:
  • Suggested answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,236 Super User 2024 Season 1 on at
    RE: Salesperson Code on an order defaults to what is set on the Bill-To Customer account instead of the actual customer account

    BC will prioritize whatever data is present in Bill-To over Sell-to. That's a standard behavior.

    You can change the behavior by writing some AL code in an Event Subscriber. If you are not into AL development, you may want to hire a AL Developer to get this done for you. Should not take more than a couple of hours to get it done

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans