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.
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 Security
- Enable Token-Based Authentication in NetSuite Developer Tools
Token-based authentication is now required for all NetSuite developer tools, enhancing security compliance and aligning with Two-Factor Authentication...
- Login Audit Trail Features for User Activity Tracking
The Login Audit Trail allows tracking user login/logout activity in NetSuite, filtering by date, user, and IP address.
- Security, Privacy, and Compliance Updates in SuiteCloud
Explore the latest updates on security, privacy, and compliance practices in SuiteCloud to enhance developer safety.
- Restricting Role Access to Subsidiaries in NetSuite
Restrict user role access to subsidiaries in NetSuite OneWorld, ensuring data privacy and security for different business units.
Advertising
Reach Security Professionals
Put your product in front of NetSuite experts who work with Security every day.
Sponsor This Category