I'm stumped: My Suitelet has the same audience, th...
# ask-stanley-ai
a
I'm stumped: My Suitelet has the same audience, the same Run As Role, etc. as another Suitelet whose External URL works perfectly, but clicking my suitelet's External URL goes to a You do not have permissions screen before it has a chance to call the entry point function onRequest (confirmed by placing a log.debug at the beginning). Internal URL works fine, but external doesn't even if I Run AS Role = Administrator, so I know it's not a permissions issue. (edited)
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the issue with the Suitelet's external URL could be due to a few reasons: 1. Audience Restrictions: Ensure that the audience for your Suitelet is not too restrictive. You can check this by going to the 'Audience' tab in your Suitelet's deployment settings. Refer to the NetSuite Help Center article on 'Defining Script Audience' for more details. 2. Before Load User Event Script: If there is a beforeLoad User Event Script that is causing issues, it might prevent the Suitelet from loading correctly. Even though it should affect both internal and external URLs, there might be differences in how they handle these scripts. 3. External Roles: As of recent NetSuite updates, you need to specify the external roles for the deployment. If you haven't done this, it might be the cause of the issue. Go to your Suitelet's deployment settings and ensure that the necessary roles are marked as external. 4. Available Without Login: Make sure that the 'Available Without Login' option is checked in your Suitelet's deployment settings. This is necessary to generate an external URL. If all these settings are correctly configured and you're still facing the issue, it might be due to some other factors specific to your Suitelet's code or configuration. Without more specific information, it's hard to provide a more definitive answer. ****** 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.856506467
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852050841
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847045958
Please provide your feedback on this answer.
Thank you for your feedback