PiRemovalTask Features for Personal Information Removal
PiRemovalTask offers methods and properties for managing personal information removal tasks, enhancing data privacy in NetSuite.
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 Name | Return Type | Supported Script Types | Description |
|---|---|---|---|
PiRemovalTask.deleteTask() | void | Server scripts | Deletes the personal information removal task. |
PiRemovalTask.run() | void | Server scripts | Executes the personal information removal task. |
PiRemovalTask.save() | void | Server scripts | Saves the personal information removal task. |
Properties
| Property Name | Type | Supported Script Types | Description |
|---|---|---|---|
PiRemovalTask.fieldIds | string[] (read-only) | Server scripts | Contains the field IDs processed by the removal task. |
PiRemovalTask.historyOnly | boolean | Server scripts | Indicates if only system note information is removed. |
PiRemovalTask.historyReplacement | string (read-only) | Server scripts | Text for replacing original values in system notes. |
PiRemovalTask.id | number (read-only) | Server scripts | ID of the personal information removal task. |
PiRemovalTask.recordIds | number[] (read-only) | Server scripts | Lists the record IDs processed by the removal task. |
PiRemovalTask.recordType | string (read-only) | Server scripts | Describes the type of record updated by the removal task. |
PiRemovalTask.status | piremoval.PiRemovalTaskStatus | Server scripts | Provides current status of the submitted task. |
PiRemovalTask.workflowIds | number[] (read-only) | Server scripts | Lists 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:
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
PiRemovalTaskobject 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
fieldIdsandrecordIdsprovide essential details about the removal process.
Frequently Asked Questions (4)
Do I need specific permissions to use PiRemovalTask methods in SuiteScript?
Can PiRemovalTask be used with client scripts?
What happens if multiple record types need personal information removal using PiRemovalTask?
Is there a built-in method to check if a PiRemovalTask has completed execution?
Was this article helpful?
More in General
- Payment Date Prediction Feature in NetSuite
Payment Date Prediction in NetSuite utilizes machine learning to enhance financial planning by predicting invoice payment dates.
- NetSuite Ship Central Enhancements for Packing & Shipping
NetSuite Ship Central features enhance packing and shipping operations for improved efficiency and accuracy.
- New Role Setup for NetSuite AI Connector Service in 2026.1
The 2026.1 release adds a new role requirement for the NetSuite AI Connector Service, streamlining custom tool development.
- Generative AI Features in NetSuite 2026.1
Discover new generative AI features in NetSuite 2026.1, enhancing reporting, search, predictions, and development productivity.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category