Dear All,
Requirment:
Module : Sales and Marketing
A single user should have a specific role where in he will be able to do all Sales order operations except "New Sales Order". The button option present in all forms of Sales order should be disabled for this role.
Later this role will be assigned to specific User.
*This post is locked for comments
How to see that a form 's privilege assined to roles in my user entry points and how to check in AOT.
REst button control I have done but no output. I believe Form permissions is the issue
Why we cant codes, Because of hard coded value. Its not best practise
Basically user should be able to do all functions of Sales Clerk and disable create SO button in all forms whether it be create, Edit,Details etc...
As per ur plan still the user able to create SO while going for edit option.
But the problem while creating with roles was that, within Sales order list page we can select a particular SO and dole clcik and again new SO option present . Like wise so may "Create SO " Option present in various forms. And sometimes even removing privldge also not woking .
'SalesTableForEdit' privledege is there then while editing SO also users can create SO.
IS there a way using code to disable for a specific role or user
You have to identify the menu item associated with the button, and in the Add-ins > Security development tools you may view what specific privileges, duties or roles have this in. Higher access wins, that means if any of the roles which your users have allows creation of sales orders, you need to create a new security role similar to that one, excluding the Security privilege which grants sales order creation.
You may find this explained in the documentation in more details.
Mohamed Amine Mahmoudi
100
Super User 2025 Season 1
Community Member
48
Zain Mehmood
6
Moderator