Overview
This node updates a record in a specified table within an application using the VanAnTravel Connector. It supports two modes for updating records: dynamic field mapping, where fields are auto-loaded from the table and mapped to values, and sending raw JSON data directly. The node authenticates using tenant and app tokens and requires the table ID and record ID to identify the record to update. It is useful for scenarios where users need to programmatically modify existing records in a database or application table, such as updating customer information, inventory data, or any structured record data.
Use Case Examples
- Updating a customer record with new contact details using dynamic field mapping.
- Sending a raw JSON object to update multiple fields of a record in one request.
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 update (starts with rec) |
| Kind Type Records | How to handle the record data: either dynamic field mapping or sending raw JSON data |
| Field Mappings | Map table fields to values when using dynamic field mapping mode |
| Fields | The fields of the record as a JSON object when sending raw data |
Output
JSON
code- Response code indicating success or errormsg- Response message describing the resultdataitems
* ``
*record_id- The ID of the updated record
*fields- The fields of the updated record with their new values
Dependencies
- Requires HTTP requests to the VanAnTravel API endpoint at https://open.feishu.cn/open-apis
Troubleshooting
- Invalid JSON in the 'Fields' parameter when using raw data mode will cause an error; ensure the JSON is correctly formatted.
- Authentication errors may occur if tenant access token or app token are missing or invalid; verify tokens start with 't-' and 'app' respectively.
- Field names must match those in the table; use the dynamic field loading feature to avoid mismatches.
- API errors from the VanAnTravel service will be reported; check network connectivity and API credentials.
Links
- Feishu Open API Documentation - Official API documentation for the Feishu platform which VanAnTravel Connector interacts with.