i think this always trips me up how can i set quer...
# suitescript
s
i think this always trips me up how can i set query parameters for a restlet ie
Copy code
&something=data
s
For GET and DELETE calls, it’s just adding additional query parameters after the script and deploy to your restlet URL. For PUT or POST, it’s usually done via the body, as JSON.
s
so nothing in side the script record ?
s
in all cases, they will be passed to the handler function as a JS object of key-pairs
so, in a GET handler, you’d use
contextParams.something
to get the value of the param inside the restlet
s
okk thanx