Sales Person should only see the customers he is responsible

WinfriedBarzWinfriedBarz Member Posts: 38
Hallo
I need to customize the security system of navison, so that a Sales Person only can see the customers, he is responsible for?

I use in every customer and every contact the "sales person code". I use the navison database.

Best regards
Winfried
Best Regards
Winfried Barz

Comments

  • ara3nara3n Member Posts: 9,257
    take a look at how responsibility center is filtering on sales order. Apply the same thing to sales person code.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ShenpenShenpen Member Posts: 386
    One could buy resp. center granule, put every sperson a different resp center, and then just copy the code from sales order to customer. It is a good idea because usually the next request will be to see only own orders, invoices etc. and resp. center does it out of the box.

    Do It Yourself is they key. Standard code might work - your code surely works.
  • themavethemave Member Posts: 1,058
    Shenpen wrote:
    One could buy resp. center granule, put every sperson a different resp center, and then just copy the code from sales order to customer. It is a good idea because usually the next request will be to see only own orders, invoices etc. and resp. center does it out of the box.
    ditto, that is great advice, use built in code when ever possible. You will only create additional work during even minor upgrades with custom code.
  • WinfriedBarzWinfriedBarz Member Posts: 38
    Thank you for the idea. I am a beginner and my problem is now to find the code in sales order I must apply to sales person code.

    Could anybody help me?

    Best regards
    Winfried :lol:
    Best Regards
    Winfried Barz
  • ShenpenShenpen Member Posts: 386
    Yes, it is in the form, in the onopenform trigger:
    IF UserMgt.GetSalesFilter() <> '' THEN BEGIN
      FILTERGROUP(2);
      SETRANGE("Responsibility Center",UserMgt.GetSalesFilter());
      FILTERGROUP(0);
    END;
    

    where UserMgt is a codeunit variable to codeunit User Setup Management

    Do It Yourself is they key. Standard code might work - your code surely works.
  • WinfriedBarzWinfriedBarz Member Posts: 38
    Thank you for your tip an the explanation.

    I tried it in Order Processing - reports - Customer-Order Details without any change

    and

    in Order Processing - Contacts with a little change "Salesperson Code" instead of "Responsibility Center" and it works fine too.

    Now I think I can make all neccessary changes for my customer.

    Best Regards
    Winfried
    Best Regards
    Winfried Barz
Sign In or Register to comment.