EntityDeduplicationTask.masterRecordId

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

When you merge duplicate records, you can delete all duplicates for a record or merge information from the duplicate records into the master record.

Use this property to set the ID of the master record that you want to use as the master record in the merge.

Important:

You must also select SELECT_BY_ID for the EntityDeduplicationTask.masterSelectionMode property, or NetSuite ignores this setting.

Type

number

Supported Script Types

Server scripts

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

Module

N/task Module

Since

2015.2

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/task Module Script Samples.

          //Add additional code 
...
dedupeTask.masterSelectionMode = task.MasterSelectionMode.SELECT_BY_ID;
dedupeTask.masterRecordId = 107;
...
//Add additional code 

        

Related Topics

task.EntityDeduplicationTask
N/task Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices