> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/coreway-table/automation/data-nodes/get-single-record.md).

# 獲取單條數據

### 1. 節點功能

在主流程裡添加此節點後，可以按條件獲取到一條記錄數據；此後可以對這條記錄數據進行刪除、修改，或供後續流程中的其他節點使用。

![新增客戶查重數據.gif](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FeRzm3jXZRsci2mBTc4TX%2F513c073932ee0466e6f0d42ac7fa8121.png?alt=media)

### 2. 獲取方式

從表單中獲取：從工作表獲取一條指定的記錄。

### 3. 節點設置

#### 3.1 為主記錄添加獲取單條數據節點

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FmYlR3x69WsnktcIffbSd%2F98aaf9a862cac7b3b490c3d0e2de07e2.png?alt=media)

#### 3.2 配置節點

需要設置 3 項內容：

* **選擇表單**：選擇從哪張工作表中查找數據
* **篩選條件**：設置查找的條件
* **排序規則**：設置獲取哪個排序規則下的第一條數據

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FmWkzfrQwdd9VH2JOKxw8%2F7ee340ce0616733deeaf756ad62c29ae.png?alt=media)

**3.2.1 選擇從哪張工作表中查找數據**

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FLcijK4D9tvkecMRUwLb5%2Fdd2be24cabe8241b246bb64b7122ec39.png?alt=media)

**3.2.2 設置查找的條件**

單個條件的條件值可以是手動輸入的固定值，也可以從前面的節點對像中選擇動態值。

支持條件組合，不同條件之間的關系統一為「且」，或者統一為「或」。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2F7EVMYtGOxWu8FkRjQF6n%2Fe455bcd9273d6bc0bac7bc1c194f1bd8.png?alt=media)

**3.2.3 設置排序規則**

查找到符合條件的記錄有多條時，如果設置了排序規則，就會根據規則排序，獲取第一條記錄。如果不設定規則，則按最近更新的一條記錄來獲取。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FDVzeaO3C4OxhoULUcm7e%2F9035284bbc6f92a15bada180df9a683e.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coreway.com/coreway-table/automation/data-nodes/get-single-record.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
