Why does my suitelet that is Available Without Log...
# ask-stanley-ai
a
Why does my suitelet that is Available Without Login refuse to execute its script when I access it via the External URL? Attempts to do so do not run any of its script but instead return this error page: You do not have privileges to view this page
c
AI generated answer (using internal Slack threads):
The issue you're experiencing with your Suitelet, which is set to 'Available Without Login', not executing its script when accessed via the External URL and returning the error 'You do not have privileges to view this page' is likely due to the absence of defined External Roles for the deployment. In recent updates, NetSuite has made it mandatory to specify the roles that are allowed to access the Suitelet when it's deployed. Even if the Suitelet is set to 'Available Without Login', you still need to define the audience of the script in the deployment record. To resolve this issue, you should go to the deployment record of your Suitelet and add the necessary roles in the 'Audience' subtab. This will allow users with those roles to access the Suitelet via the External URL. For more information on defining the script audience, you can refer to the NetSuite Help Center article titled 'Defining Script Audience'. ****** 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.874023557
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.873840392
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.868347287
Please provide your feedback on this answer.
Thank you for your feedback
a
That's not actually true: I have another Suitelet that has no Audience but it runs just fine when accessed via its External URL
a
Give permissions only to external roles.
n
@Aaron McCausland go to external roles and select Online Form User.