When I enable the "Available Without Login" option...
# ask-stanley-ai
m
When I enable the "Available Without Login" option on a Suitelet, I am unable to enter values in the fields when I click on the external URL link. Why is this happening? Maybe need a custom authentication process. ? Give an exemple
c
AI generated answer (using internal Slack threads):
When you enable the "Available Without Login" option on a Suitelet, it means that the Suitelet can be accessed without requiring a NetSuite login. However, this also means that there are no additional permission settings that can restrict who can access it. The permissions settings on the Suitelet will only impact what that Suitelet can do within your NetSuite environment. If you are unable to enter values in the fields when you click on the external URL link, it could be due to the way the Suitelet is coded. The Suitelet might not be designed to handle input from users who are not logged in. If you want to restrict access to the Suitelet to certain individuals without assigning them a NetSuite license, you would need to implement some sort of custom authentication process within the Suitelet. This could involve using an external identity platform such as Okta, or you could code your own authentication process within the Suitelet. Here's an example of how you might implement a simple authentication process within a Suitelet:
Copy code
javascript
function suitelet(request, response){
    var password = request.getParameter('password');
    if(password == 'your_password'){
        // The user is authenticated, so you can proceed with the rest of the Suitelet code
    } else {
        // The user is not authenticated, so you can return an error message
        response.write('Invalid password');
    }
}
In this example, the Suitelet checks if the password provided in the request matches a predefined password. If the password matches, the Suitelet proceeds with the rest of its code. If the password does not match, the Suitelet returns an error message. ****** 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.864209771
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84689033
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832687259
Please provide your feedback on this answer.