How to use Postman with an external facing suitelet
Every time I need to create an externally facing suitelet I trip over this issue. The issue is that querying the public url of the suitelet produces no result. Postman just spins as if awaiting a response. To make matters more confusing, log.debug
statements never fire on the back end. This is how to properly use Postman with an external facing suitelet. All you need to do is remove the User-Agent
header from the request. For some reason, NetSuite doesn’t like getting requests from certain User-Agent types. As of 7/27/2023, when this was written, leaving the User-Agent out caused NetSuite to provide a response. You can also use “Mozilla/5.0” for the User-Agent string and it should work.