How can I set role permissions to allow edit, but ...
# ask-stanley-ai
d
How can I set role permissions to allow edit, but not create of a vendor record?
c
AI generated answer (using internal Slack threads):
To set role permissions to allow edit, but not create of a vendor record in NetSuite, you can use a combination of role permissions and scripting or workflows. Here are the steps: 1. First, you need to set the role permissions for the user. Go to Setup > Users/Roles > Manage Roles > Edit the specific role. Under the 'Permissions' tab, find the 'Lists' subtab. Add 'Vendors' and set the level to 'Edit'. This will allow the user to edit vendor records. 2. However, this will also allow the user to create new vendor records, which is not what you want. To prevent this, you can use a script or a workflow. 3. If you choose to use a script, you can create a User Event script that triggers on the 'beforeSubmit' event. In this script, you can check if the context is 'CREATE' and if the user role is one of those that should not be allowed to create vendor records. If both conditions are met, you can throw an error to prevent the record from being created. 4. If you choose to use a workflow, you can create a workflow that triggers on the 'Before Record Submit' event. In this workflow, you can add a state with a condition that checks if the context is 'CREATE' and if the user role is one of those that should not be allowed to create vendor records. If both conditions are met, you can add an action to show a message and stop the workflow, which will prevent the record from being created. Please note that this solution requires some knowledge of SuiteScript or SuiteFlow, and you should test it thoroughly before deploying it to your live environment. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840987861
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839209616
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836016119
Please provide your feedback on this answer.