Overview
This node interacts with the VanAnTravel Connector API to manage records in a table within an application. Specifically, the 'Delete' operation deletes a record identified by its Record ID from a specified table. It requires authentication via a tenant access token and an app token. This node is useful for automating data management tasks such as removing outdated or incorrect records from a database table in an application.
Use Case Examples
- Deleting a user record from a customer database table when the user unsubscribes.
- Removing an obsolete inventory item from a product table in an inventory management system.
Properties
| Name | Meaning |
|---|---|
| Tenant Access Token | The tenant access token for authentication (starts with t-) |
| App Token | The app token for the application (starts with app) |
| Table ID | The ID of the table (starts with tbl) |
| Record ID | The ID of the record to delete (starts with rec) |
Output
JSON
code- Response status code indicating success or errormsg- Response message describing the result of the delete operationdataitems
*0
*record_id- The ID of the deleted record
*fields- An empty object as the record fields are deleted
*deleted- Boolean flag indicating the record was deleted (true)
Dependencies
- Requires HTTP requests to the VanAnTravel API endpoint at https://open.feishu.cn/open-apis
Troubleshooting
- Ensure the tenant access token and app token are valid and have the necessary permissions to delete records.
- Verify that the Table ID and Record ID are correct and exist in the application.
- Common error messages include authentication failures or invalid record IDs; check credentials and input parameters if errors occur.
- If the node fails but 'Continue On Fail' is enabled, errors will be returned in the output JSON for each failed item.