forms - NetSuite request.getBody() returns empty string -
I am calling request.getBody () in a POST request within NetSutie. However, I'm returning an empty string. I have requested GetAllParameters () Get a list of nulls as well and the only way to access the post parameters is to request.getParameter (parameter_name_here), which is strange because it should only work with a GET request. Apart from this, I have confirmed that the post method is 'post' and there are names attributes in the form field, any ideas?
Code example:
Function suite (request, response) {var _post = request.getBody (); // _ Post Request Post / parameters should have a strong representation, but there is an empty string. ....}
Comments
Post a Comment