<@UP0GS40AF> Suitelet: - Those are the ones offici...
# suitescript
a
@Watz Suitelet: • Those are the ones officially documented to inject HTML code. • You don't need to deal with Auth. • Your backend Suitelet does not need to be available without login.
šŸ‘ 2
w
I've think I have seen hints that you don't need to auth to a RESTlet if it's calling it internally from a logged in user, but I may have misread.
b
choose a suitelet, its not forced to be available externally and you have more options on permissions
šŸ‘ 4
w
From a development/iteration standpoint, isn't a bit convenient to be able to compile and run locally and call netsuite?
b
kinda depend on if you think its more work for the backend suitelet or the frontend spa
you could make the suitelet temporarily available externally if you really wanted to
you could also go with a restlet if you think you wont have permission issues
w
True, making it temporarily available externally is a simple solution.
s
I opt for a restlet.
w
Care to elaborate on why?
s
because a restlet does not allow unauthenticated access, has several times more governance support and is optimized for JSON
šŸ‘ 1