> 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/update-workflow-params.md).

# 更新流程參數

### 1. 什麼是流程參數

流程參數主要服務於工作流程數據傳遞的簡化，尤其是有子流程的工作流程。我們可以在流程中定義一個參數對象，臨時用作工作流程字段的存放、接收或計算值，然後被其他節點引用；當流程運行結束後，參數值將被置空。

### 2. 流程參數能解決什麼

* 讓你無需為了工作流程邏輯運算、數據傳遞的需要，而在工作表裡定義冗餘字段，簡化工作表配置；
* 透過把主流程的字段值賦值給子流程的參數，實現多條記錄對象的相關數據同時傳給一條子流程；
* 如果你的子流程數據源是單條記錄對象，並勾選了「子流程執行完畢後，再開始下一個節點」，那麼之後的主流程節點就可以使用子流程內部的字段值了。

### 3. 支持的參數類型

* **參數類型**：目前支持文本、數字、日期、成員、部門幾種類型。參數類型需要配置正確，在賦值時，需要對應的字段類型才能用。
* **參數名稱**：名稱必須以字母開頭，禁止出現漢字。

參數創建時並沒有初始值，只有在流程執行時，**透過賦值才有值**。

### 4. 給流程參數賦值

#### 4.1 更新本流程參數

首先在配置裡面設置好流程參數。

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

然後在流程裡，添加「更新流程參數」節點為本流程的參數賦值，將參數當作一個字段處理即可。

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

#### 4.2 為子流程的參數賦值

在「子流程節點」為子流程的參數賦值：

* 首先在流程中添加子流程節點，選擇數據對象後選擇執行子流程。

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

* 如果沒有參數，可以點擊參數設置，快速添加子流程參數。

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

* 設置參數後，進行添加字段，就可以向子流程的流程參數傳遞初始值，供子流程執行時使用。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2F1PhxoJgPjQKAUh5WSryG%2F8305cc5992fca422da7ea98b214c0285.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/update-workflow-params.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.
