PiRemovalTask Features for Personal Information Removal

PiRemovalTask offers methods and properties for managing personal information removal tasks, enhancing data privacy in NetSuite.

·2 min read·View Oracle Docs

The PiRemovalTask object in NetSuite provides methods and properties crucial for effectively managing personal information (PI) removal tasks. This is particularly significant in ensuring data privacy and compliance with regulations like GDPR. Developers can utilize various methods to create, run, and delete tasks focused on the removal of sensitive information.

Overview of PiRemovalTask Object Members

The PiRemovalTask object encompasses the following key members:

Methods

Method NameReturn TypeSupported Script TypesDescription
PiRemovalTask.deleteTask()voidServer scriptsDeletes the personal information removal task.
PiRemovalTask.run()voidServer scriptsExecutes the personal information removal task.
PiRemovalTask.save()voidServer scriptsSaves the personal information removal task.

Properties

Property NameTypeSupported Script TypesDescription
PiRemovalTask.fieldIdsstring[] (read-only)Server scriptsContains the field IDs processed by the removal task.
PiRemovalTask.historyOnlybooleanServer scriptsIndicates if only system note information is removed.
PiRemovalTask.historyReplacementstring (read-only)Server scriptsText for replacing original values in system notes.
PiRemovalTask.idnumber (read-only)Server scriptsID of the personal information removal task.
PiRemovalTask.recordIdsnumber[] (read-only)Server scriptsLists the record IDs processed by the removal task.
PiRemovalTask.recordTypestring (read-only)Server scriptsDescribes the type of record updated by the removal task.
PiRemovalTask.statuspiremoval.PiRemovalTaskStatusServer scriptsProvides current status of the submitted task.
PiRemovalTask.workflowIdsnumber[] (read-only)Server scriptsLists workflow IDs processed by the removal task.

Creating and Running a PiRemovalTask

To initiate a personal information removal task, you can create a task with specific parameters:

suitescript
1var myPiRemovalTask = piremoval.createTask({
2 recordType: 'customer',
3 recordIds: [11, 19],
4 fieldIds: ['comments', 'phone'],
5 workflowIds: [1],
6 historyOnly: false,
7 historyReplacement: 'removed_value'
8});
9
10myPiRemovalTask.save();
11var myTaskId = myPiRemovalTask.id;
12
13myPiRemovalTask.run();

Summary

The PiRemovalTask is essential for businesses prioritizing data privacy. By utilizing its methods and properties, developers can effectively manage the removal of personal information across various records, ensuring compliance with privacy regulations while maintaining operational efficiency.

Source: This article is based on Oracle's official NetSuite documentation.

Key Takeaways

  • The PiRemovalTask object is vital for handling personal information removal in NetSuite.
  • It includes methods to create, run, and delete tasks focused on data privacy.
  • Properties such as fieldIds and recordIds provide essential details about the removal process.

Frequently Asked Questions (4)

Do I need specific permissions to use PiRemovalTask methods in SuiteScript?
The article does not specify permissions required, but since PiRemovalTask methods involve data management, appropriate administrative privileges may be necessary.
Can PiRemovalTask be used with client scripts?
No, PiRemovalTask methods and properties are only supported in server scripts.
What happens if multiple record types need personal information removal using PiRemovalTask?
While the article shows the use of a single record type in examples, it does not clarify handling multiple types simultaneously. You may need separate tasks for each record type.
Is there a built-in method to check if a PiRemovalTask has completed execution?
The article mentions a 'status' property which likely indicates the current state of the task, but it does not detail a specific method to check task completion. Further exploration of the status property may be needed.
Source: PiRemovalTask Object Members Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →