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).
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
ResponseStatusvariable for the Output property.
- Your input property values are sent to the delete operation.
- The API returns the
ResponseStatusvalue to your output property variable.
- Object - The object for which to delete the record. Use the Select button to set the object.
- Internalid - The internalid of the NetSuite record that you want to delete
- DisplayName - The display name of the activity. This field supports only
- Id - The Id of the record that you want to delete. This field supports only
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
- DeletionReasonCode - The NetSuite code that describes the reason for the deletion. This field supports only
- The DeletionReasonCode value must be a deletion reason that is listed in the NetSuite application under Setup > Accounting > Accounting Lists.
- If the Use Deletion Reasons feature is enabled and you use the DeletionReasonCode to identify a code that does not exist, the request fails with an INVALID_REF_KEY error.
- For more information, see Deletion Reason Notes in the NetSuite documentation.
- DeletionReasonMemo - A note describing the reason for the deletion. This field supports only
Stringvariables. For more information, see Deletion Reason Notes in the NetSuite documentation.
- ResponseStatus - The status of the request (success/failure information). Enter a
ResponseStatusvariable (UiPath.BAF.Models.ResponseStatus). The
ResponseStatusobject includes three properties that you can use in other activities.
- Success -
Boolean- Specifies whether the API request was successful.
- ErrorCode -
String- The response error if the API request is unsuccessful (Success=False).
- Message -
String- The error message.
- Success -
Updated about a month ago