Feishu Node icon

Feishu Node

Feishu Node

Actions106

Overview

This node, named "Feishu Node," provides integration with a spreadsheet service (likely Feishu's spreadsheet feature). Specifically, for the resource "电子表格" (Spreadsheet) and operation "复制工作表" (Copy Worksheet), it allows users to copy an existing worksheet within a spreadsheet and create a new worksheet with a specified name. This is useful when you want to duplicate the structure or content of a sheet without manually recreating it.

Practical examples include:

  • Creating backup copies of important sheets before making changes.
  • Duplicating templates for repeated use.
  • Automating the creation of new sheets based on existing ones in workflows.

Properties

Name Meaning
电子表格 Token The token string used to authenticate and access the spreadsheet.
源工作表的 ID The ID of the source worksheet that you want to copy.
新工作表名称 The desired name for the newly created copied worksheet.

Output

The node outputs JSON data representing the result of the copy operation. Each output item corresponds to one input item processed. The JSON typically contains details about the newly created worksheet, such as its ID, name, and possibly metadata returned by the spreadsheet API.

If the node supports binary data output, it would represent any file or media content related to the spreadsheet, but this is not indicated in the provided code or properties.

Dependencies

  • Requires an API token credential ("电子表格 Token") to authenticate requests to the spreadsheet service.
  • The node depends on an external resource factory module to build and execute the specific resource-operation logic.
  • No explicit environment variables are mentioned, but proper API authentication setup in n8n is necessary.

Troubleshooting

  • Common issues:
    • Invalid or expired spreadsheet token leading to authentication failures.
    • Incorrect source worksheet ID causing the copy operation to fail.
    • Naming conflicts if the new worksheet name already exists.
  • Error messages:
    • If the operation method is not implemented, the node throws an error indicating the missing implementation for the resource-operation pair.
    • API errors from the spreadsheet service are caught and can be surfaced as node errors.
  • Resolutions:
    • Verify the validity and permissions of the provided token.
    • Double-check the source worksheet ID.
    • Ensure the new worksheet name is unique within the spreadsheet.
    • Use the node’s "Continue On Fail" option to handle errors gracefully in batch operations.

Links and References

  • Feishu Spreadsheet API documentation (if applicable)
  • n8n documentation on creating custom nodes and handling credentials
  • General spreadsheet API usage guides for copying sheets

Discussion