The Delete Record activity uses the NetSuite delete operation to delete a specific record (internalid).
After deleting the record, the activity outputs the status of the request (success/failure information) in a ResponseStatus
object (NetSuiteStatus) that you can use in subsequent activities (e.g., conditional logic).
How it works
The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
- Complete the Setup steps.
- Add the NetSuite Application Scope activity to your project.
- Add the Delete Record activity inside the NetSuite Application Scope activity.
- Enter values for the Input properties.
- Create and enter a
ResponseStatus
variable for the Output property.- Your input property values are sent to the delete operation.
- The API returns the
ResponseStatus
value to your output property variable.


Properties
The values for the following properties are specified when adding this activity to your project in UiPath Studio.
Common
DisplayName
The display name of the activity.
Attributes | Details |
---|---|
Type |
|
Required | Yes |
Default value | Delete Record |
Allowed values | Enter a |
Notes | N/A |
Input
Record Type
The type of NetSuite record that you want to delete.
Attributes | Details |
---|---|
Type | Drop-down list |
Required | Yes |
Default value | Empty |
Allowed values | Select an item from the drop-down list. |
Notes | N/A |
DeletionReasonCode
The NetSuite code that describes the reason for the deletion.
Attributes | Details |
---|---|
Type |
|
Required | Yes |
Default value | Empty |
Allowed values | Enter a |
Notes | The DeletionReasonCode value must be a deletion reason that is listed in the NetSuite application under Setup > Accounting > Accounting Lists. |
DeletionReasonMemo
A note describing the reason for the deletion.
Attributes | Details |
---|---|
Type |
|
Required | Yes |
Default value | Empty |
Allowed values | Enter a |
Notes | For more information, see Deletion Reason Notes in the NetSuite documentation. |
Internalid
The internalid of the NetSuite record that you want to delete.
Attributes | Details |
---|---|
Type |
|
Required | Yes |
Default value | Empty |
Allowed values | Enter a |
Notes | To get the internalid value, see Enable Show Internal IDs in the Setup guide. |
Misc
Private
If selected, the values of variables and arguments are no longer logged at Verbose level.
Attributes | Details |
---|---|
Type | Checkbox |
Required | No |
Default value | Not Selected |
Allowed values | Selected or Not Selected |
Notes | N/A |
Output
NetSuiteStatus
The status of the request (success/failure information).
Attributes | Details |
---|---|
Type |
|
Required | No (required if you want to use the output data in subsequent activities) |
Default value | Empty |
Allowed values | Enter a UiPath.BAF.Models.ResponseStatus |
Notes | The |
Example
The following image shows an example of the activity dependency relationship and input/output property values.
Updated 6 months ago