SecureString.appendString(options)
|
Method Description |
Appends a string to an https.SecureString. You should use this method only for appending a string (UTF-8) content to an . https.SecureString |
|
Returns |
|
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
|
Governance |
None |
|
Module |
|
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
|
Parameter |
Type |
Required / Optional |
Description |
|---|---|---|---|
|
|
string |
required |
The string to append. The following patterns are accepted:
|
|
|
string |
optional |
The encoding of the string that is being appended. Use values from the https.Encoding enum. The default value is
Note:
This parameter is deprecated; you should use this method only for appending a string (UTF-8) content to a SecureString. |
|
|
boolean |
optional |
Keeps the appended string in its original encoding. Set this value to true to prevent unexpected content re-encoding. The default value is false. |
Errors
|
Error Code |
Thrown If |
|---|---|
|
|
The |
|
|
The |
|
|
The |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/https Module Script Samples.
// Add additional code
...
var regularString1 = "myString1";
var secureString1 = https.createSecureString({
input: "myString2"
});
secureString1.appendString({
input: regularString1,
keepEncoding: true
});
// secureString1 will now be "myString1myString2"
...
// Add additional code