dataset.createTranslation(options)

Note:

The content in this help topic applies to SuiteScript 2.x.

Method Description

Creates a translation expression based on a Translation Collection.

Returns

workbook.Expression

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

None

Module

N/dataset Module

Sibling Module Members

N/dataset Module Members

Since

2021.2

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.collection

string

required

The Translation Collection to use.

options.key

string

required

The translation term to use.

Syntax

Important:

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.

            // Add additional code
...
var myTranslation = dataset.createTranslation({
    collection: 'myTranslationCollection',
    key: 'myTerm'
});
...
// Add additional code 

          

Related Topics

N/dataset Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices