How do I access the arguments in the url in a suit...
# suitescript
a
How do I access the arguments in the url in a suitelet?
m
Copy code
context.request.parameters
a
Ah so the same way I get the submitted fields?
m
The server request parameters, as name:value pairs. Note that if the server request is a Get request, parameters are sent as part of the URL. If the server request is a Post request, parameters are sent within the request body.
I'm not sure if url parameters can be retrieved like that in POST request (above indicates they wouldn't). If not, you could probably get from request.url and parse yourself
126 Views