dataset.createTranslation(options)
Method Description |
Creates a translation expression based on a Translation Collection. |
Returns |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Sibling Module Members |
|
Since |
2021.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The Translation Collection to use. |
|
string |
required |
The translation term to use. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/dataset Module Script Samples. Also see the Tutorial: Creating a Dataset Using the Workbook API topic.
// Add additional code
...
var myTranslation = dataset.createTranslation({
collection: 'myTranslationCollection',
key: 'myTerm'
});
...
// Add additional code