new nlobjRequest() → {nlobjRequest}
Return a new instance of nlobjRequest used for scripting web requests in Suitelets
- Source:
- nlapihandler_stubs.js, line 3216
Returns:
- Type
- nlobjRequest
Methods
-
getAllFiles() → {Object}
-
return an Object containing field names to file objects for all uploaded files.
- Since:
- 2009.1
- Source:
- nlapihandler_stubs.js, line 3322
Returns:
- Type
- Object
-
getAllHeaders() → {Object}
-
return an Object containing all the request headers and their values.
- Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3299
Returns:
- Type
- Object
-
getAllParameters() → {Object}
-
return an Object containing all the request parameters and their values.
- Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3250
Returns:
- Type
- Object
-
getBody() → {string}
-
return the body of the POST request
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3332
Returns:
- Type
- string
-
getFile(name) → {nlobjFile}
-
return the value of an uploaded file.
Parameters:
Name Type Description name
string file field name - Since:
- 2009.1
- Source:
- nlapihandler_stubs.js, line 3311
Returns:
- Type
- nlobjFile
-
getHeader(name) → {string}
-
return the value of a request header.
Parameters:
Name Type Description name
string - Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3288
Returns:
- Type
- string
-
getLineItemCount(group) → {int}
-
return the number of lines in a sublist.
Parameters:
Name Type Description group
string sublist name - Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3276
Returns:
- Type
- int
-
getLineItemValue(group, name, line) → {string}
-
return the value of a sublist value.
Parameters:
Name Type Description group
string sublist name name
string sublist field name line
int sublist line number - Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3264
Returns:
- Type
- string
-
getMethod() → {string}
-
return the METHOD of the request
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3352
Returns:
- Type
- string
-
getParameter(name) → {string}
-
return the value of a request parameter.
Parameters:
Name Type Description name
string parameter name - Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3228
Returns:
- Type
- string
-
getParameterValues(name) → {string[]}
-
return the values of a request parameter as an Array.
Parameters:
Name Type Description name
string parameter name - Since:
- 2008.2
- Source:
- nlapihandler_stubs.js, line 3240
Returns:
- Type
- string[]
-
getURL() → {string}
-
return the URL of the request
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3342
Returns:
- Type
- string