> 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/triggers/member-event-trigger.md).

# 人員事件觸發

### 1. 類型介紹

人員事件觸發：當組織中有人員入職／離職時啟動流程，可以將人員信息同步到工作表或其他系統。

### 2. 場景示例

您透過《員工管理》表來維護員工的基本信息，同時這些信息也能被其他工作表關聯調用，因此員工信息必須及時更新。

例如，當有新人入職時，需要將新員工的檔案信息添加到員工檔案表中，便於及時使用。

### 3. 配置示例

#### 3.1 添加流程類型

創建流程時，選擇「按人員事件觸發」。

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

#### 3.2 配置觸發方式

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

**3.2.1 選擇觸發方式**

**入職觸發場景**

* 管理員定向邀請加入組織，對方填寫組織名片並加入組織時觸發流程。
* 非管理員邀請，或透過邀請鏈接申請加入後，管理員「批准」時觸發流程。
* 已離職人員，管理員恢復其權限時觸發流程。

**離職觸發場景**

* 管理員在組織後台為其辦理離職時觸發流程。
* 員工自己退出組織時觸發流程。

**3.2.2 設置篩選條件**

只有滿足條件的記錄才能觸發流程。

### 4. 配置執行計劃（新增記錄）

配置好觸發器後，就可以開始配置計劃執行的動作了。根據場景需求，需要將新入職的人員同步到《員工表》中；由於是新入職，因此選擇「新增記錄」節點。

**添加新增記錄節點**：添加新增記錄節點，將獲取到的入職人員信息，在員工檔案表中新增一條相關記錄。

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

### 5. 發布流程

保存之後，點擊「發布流程」即可測試、使用。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FvrzgqdRrWb13XwOVnUUq%2Fe3e7fdc5893598c99d2456ee74109ff4.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/triggers/member-event-trigger.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.
