var createBookmrk = context.request.body;
get method in postman
data in body - raw
{
"action":"postBookmark",
"type":"VCO",
"title":"Bookmarked Record Title",
"id":123456,
"bookmark":*true*
}
i am not geting anything .... in suitelet
b
battk
09/28/2021, 5:00 PM
http GET method has no body
r
razer456
09/28/2021, 5:06 PM
then if i want add parameters to url in post .. how'd i do tht?
b
battk
09/28/2021, 5:07 PM
the same way you would do so in GET
battk
09/28/2021, 5:08 PM
however you may have to parse the url in your suitelet to access those parameters
r
razer456
09/28/2021, 5:09 PM
if i do this at the start of the script
if (context.request.method == "GET" || context.request.method == "POST")
it gives me back this object in postman
{
"servlet": "nlservlet",
"message": "Method Not Allowed",
"url": "/app/site/hosting/scriptlet.nl",
"status": "405"
}