Skip to content

Grist 节点#

¥Grist node

使用 Grist 节点自动化 Grist 中的工作,并将 Grist 与其他应用集成。n8n 内置支持多种 Grist 功能,包括创建、更新、删除和读取表格中的行。

¥Use the Grist node to automate work in Grist, and integrate Grist with other applications. n8n has built-in support for a wide range of Grist features, including creating, updating, deleting, and reading rows in a table.

本页列出了 Grist 节点支持的操作列表以及更多资源的链接。

¥On this page, you'll find a list of operations the Grist node supports and links to more resources.

Credentials

请参阅 Grist 凭据 以了解有关设置身份验证的指导。

¥Refer to Grist credentials for guidance on setting up authentication.

操作#

¥Operations

  • 在表中创建行

¥Create rows in a table

  • 删除表中的行

¥Delete rows from a table

  • 从表中读取行

¥Read rows from a table

  • 更新表格中的行

¥Update rows in a table

模板和示例#

¥Templates and examples

Template widget placeholder.

获取行 ID#

¥Get the Row ID

要更新或删除特定记录,你需要行 ID。获取行 ID 有两种方法:

¥To update or delete a particular record, you need the Row ID. There are two ways to get the Row ID:

在 Grist 中创建行 ID 列。

¥Create a Row ID column in Grist

在 Grist 表中创建公式为 $id 的新列

¥Create a new column in your Grist table with the formula $id.

使用“获取全部”操作

¥Use the Get All operation

“获取全部”操作返回每条记录的行 ID 及其字段。

¥The Get All operation returns the Row ID of each record along with the fields.

你可以使用表达式 {{$node["GristNodeName"].json["id"]}} 获取此列表。

¥You can get it with the expression {{$node["GristNodeName"].json["id"]}}.

使用“获取全部”操作时筛选记录#

¥Filter records when using the Get All operation

  • 选择“添加选项”,然后从下拉列表中选择“筛选”。

¥Select Add Option and select Filter from the dropdown list.

  • 你可以为任意数量的列添加筛选器。结果将仅包含与所有列都匹配的记录。

¥You can add filters for any number of columns. The result will only include records which match all the columns.

  • 对于每一列,你可以输入任意数量的值,以逗号分隔。结果将包含与该列中任何值匹配的记录。

¥For each column, you can enter any number of values separated by commas. The result will include records which match any of the values for that column.