piremoval.getTaskStatus(options)
| 
                   Method Description  | 
                
                   Retrieves the status of a personal information removal task.  | 
              
| 
                   Returns  | 
                |
| 
                   Supported Script Types  | 
                
                   Server scripts For more information, see SuiteScript 2.x Script Types.  | 
              
| 
                   Governance  | 
                
                   None  | 
              
| 
                   Module  | 
                |
| 
                   Sibling Object Members  | 
                |
| 
                   Since  | 
                
                   2019.2  | 
              
Parameters
The options parameter is a JavaScript object.
| 
                     Parameter  | 
                  
                     Type  | 
                  
                     Required / Optional  | 
                  
                     Description  | 
                
|---|---|---|---|
| 
                     
                        | 
                  
                     number  | 
                  
                     required  | 
                  
                     Unique identifier of the personal information removal task.  | 
                
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/piremoval Module Script Sample.
            // Add additional code
...
var myPiRemovalTask = piremoval.createTask({
    recordType: 'customer',
    recordIds: [95],
    fieldIds: ['email'],
    historyReplacement: 'removed_value'
});
myPiRemovalTask.save();
var myId = myPiRemovalTask.id;
var myFirstStatus = piremoval.getTaskStatus({
    id: myId
});
myPiRemovalTask.run();
var mySecondStatus = piremoval.getTaskStatus({
    id: myId
});
...
// Add additional code