RE: Post a Suilet from button click

Hello everyone,


I have a button on the item record. When clicked, it should open a suitelet in a new window. I have to pass a JSON object as a parameter to the suitelet. So, when using GET, it fails as the URL exceeds the limit. Can anyone tell me how to call a Suitelet using POST and send the parameters (JSON object) from a button click in the client script.



rams Rookie Asked on September 20, 2019 in SuiteScript.
Add Comment
5 Answers

I haven’t implemented this in NetSuite but it should be something along the lines as described/answered in this stackexchange post.

Beginner Answered on September 20, 2019.

Thanks for the reply. But I am looking for suitelet side of things. As far I looked anywhere, suitelet is called using Get and on submit, it will be POST.

on September 20, 2019.

Sorry I don’t understand. Why passing suitelet’s url in form’s action attribute not work? Because as far as Suitelet is concerned, you are making a POST request.

on September 20, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.