Skip to main content

Notifications

Announcements

No record found.

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

Restricting location on sales orders by user/ salesperson

Posted on by 91

Business Central On Prem

Client wants a user or salesperson (they have salesperson codes but no user as some of their orders come from CRM users) defined restriction on sales and purchase orders, so they cannot select certain locations.   I am not sure this can be done, has anyone have experience with this?

Thoughts:

Can I restrict locations by user?  Can I add dimensions to locations to filter them somehow? Some people need access to all locations, some only one or two.

Thank you

Categories:
  • Micheleish Profile Picture
    Micheleish 91 on at
    RE: Restricting location on sales orders by user/ salesperson

    I like this one, I will give this a try.

  • Suggested answer
    Dallefeld Profile Picture
    Dallefeld 11,425 User Group Leader on at
    RE: Restricting location on sales orders by user/ salesperson

    Assign users to responsibility centers and on the responsibility center select the desired location .

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    RE: Restricting location on sales orders by user/ salesperson

    Hi, I vote for security filters.

    More details: https://yzhums.com/10133/

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Restricting location on sales orders by user/ salesperson

    Maybe you can define that a rules in the CRM system ?

    docs.microsoft.com/.../use-field-security-control-access-field-values

  • Micheleish Profile Picture
    Micheleish 91 on at
    RE: Restricting location on sales orders by user/ salesperson

    Yes, for users I can do this, but some salespeople do not have a user, as some of the orders are integrated from CRM.  

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Restricting location on sales orders by user/ salesperson

    Inside Business Central you can achieve this using security filters. There you can define what locations each user should have access to.

    Please refer to this doc:

    docs.microsoft.com/.../security-filters

  • Suggested answer
    Calum Knox Profile Picture
    Calum Knox 5 on at
    RE: Restricting location on sales orders by user/ salesperson

    Sounds like you will need to do a small bit of dev here to do some validations. On each location you could navigate to a table where you define the allowed salespeople for that location.

    Then code on the sales and purchase to show and hide locations based on the salesperson code.

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans