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) Available Without Login is checked in both the working script's deployment and the non-working script's deployment. The Audience is All Internal Roles and all external roles on both the working script's deployment and the non-working script's deployment. It's a suitelet that doesn't access any records or modules or libraries before the entry point onRequest function. beforeLoad scripts have to be deployed to a record type. No record types are involved at this point.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the issue you're facing with your Suitelet's External URL could be related to the role that the Suitelet is running as. If the Suitelet is set to run as 'Current Role', it might not work for external users. You might need to set up a new role with only the necessary permissions for the Suitelet to run correctly. Also, it's important to ensure that there are no beforeLoad User Event scripts that might be causing issues when the Suitelet is accessed externally. If there is a beforeLoad script installed via a bundle, it might be causing issues that are not apparent when the Suitelet is accessed internally. Another point to consider is the audience of your Suitelet. If the audience is too restricting, it might prevent the Suitelet from being accessed via the External URL. You can check and modify the audience of your Suitelet by following the instructions in the NetSuite Help Center article on 'Defining Script Audience'. Remember, even if the Suitelet is set to 'Available Without Login', it still needs the correct permissions and audience settings to function correctly. ****** 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.875976622
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.870727539
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.870117247
Please provide your feedback on this answer.