Use different approaches to interact with records in SuiteScript Flashcards

1
Q

Which module can we use to merge or delete duplicate records?

A

N/task can be used to merge or delete duplicate records.

N/task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The task.EntityDeduplicationTask object includes the following 4 properties:

◦ entity type
◦ dedupeMode
◦ masterSelectionMode
◦ masterRecordId

What information do they contain?

A

◦ entity type: type of entity record
◦ dedupeMode: Whether to Merge or Delete
◦ masterSelectionMode: sets how the master record is decided, if masterSelectionMode is SELECT_BY_ID task.masterSelectionMode
◦ masterRecordId: The ID of the master record

task.EntityDeduplicationTask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can we find duplicates using the N/search module?

A

The search.duplicates(options) function

search.duplicates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many records can be submitted in a single merge using the N/task module?

A

Up to 200 records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What record type is the only one available for merging?

A

You can only merge entity records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What permission do you need to have FULL permissions for in order to merge?

A

The Duplicate Record Management permission

task.EntityDeduplicationTask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The N/datasetLink module is used to link datasets, but why might this be useful?

A

Workbooks can use data from both datasets when they are linked

N/datasetLink

How well did you know this?
1
Not at all
2
3
4
5
Perfectly