Permissions On sales order

Hello All,

Can anyone suggest me how to write code for permission on sales order?

Requirement is if sales header get assigned user id it can edit sales order else show message you don’t have permission to edit

Please help me to solve this issue …

Create a boolean option in the user setup as Sales Permission.

Assign it to the user as per your requiremnt and add the code on OpenPage() trigger as :


IF NOT(UserSetup.Sales) THEN

ERROR(‘You don’‘t have Permission’);

Hopefully it works as per your scenario … Cheers :slight_smile: