my suitelet is being run as using a custom role bu...
# ask-stanley-ai
g
my suitelet is being run as using a custom role but is erroring on loading a sales order record
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the issue you're facing with your Suitelet is related to permissions. When a Suitelet is set to be available without login, it runs in the context of a role specified in the deployment settings. If the role doesn't have the necessary permissions to load a sales order record, you will encounter an
INSUFFICIENT_PERMISSION
error. To resolve this issue, you need to ensure that the role specified in the Suitelet deployment has the necessary permissions to load a sales order record. You can do this by going to the role settings in NetSuite and adding the required permissions. If the Suitelet is running as 'Current Role', it won't work for external users. You should preferably set up a new role with only the permissions needed for the Suitelet to function correctly. Remember, when setting up a deployment to run as a specific role, you should always ensure that the role has the necessary permissions for the operations the Suitelet will perform. ****** 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.828628778
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826025188
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819946229
Please provide your feedback on this answer.
g
what permissions are needed to load a sales order record in a suitelet
what permissions are needed to load a sales order record in a suitelet