> 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/date-event.md).

# 日期事件

### 1. 類型介紹

可以選擇工作表的某個日期字段，系統會監聽所有記錄中選定的日期；一旦某條記錄中的日期時刻到了，這條記錄就會自動觸發流程。

### 2. 場景示例

例如：員工檔案表裡記錄著每個員工的生日，每年員工生日的前一天早上 8 點，都會自動給那位員工發送祝福短信。

### 3. 配置步驟

#### 3.1 選擇流程類型

創建流程時，選擇「按日期字段觸發」。

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

#### 3.2 配置觸發節點

**3.2.1 選擇工作表**

當前應用下的工作表都可以選擇，這裡選擇監聽「員工表」。

**3.2.2 指定日期字段**

選擇一個日期字段或時間字段，系統會監聽這個表中所有記錄裡選定的日期。

此例子指定的日期字段為員工生日，是日期類型的字段。由於字段值不包含時間部分，因此需要額外設定具體的時刻（執行日期＋時間）。

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

**3.2.3 開始執行時間**

即第一次執行的日期時間，日期字段和日期時間字段的配置方式有所不同。

**特別說明：**

* **日期類型字段**：由於日期字段沒有時間部分，因此觸發時間需要手動指定一個時刻。實際的觸發時刻可以是日期的前幾天或後幾天，也可以是記錄中選定日期的當天。
* **日期＋時間類型字段**：此類型本身帶有時間部分，不需要單獨選擇觸發時刻。實際的觸發時刻可以提前或前後 N 分鐘（小時／天）。

**3.2.4 重複週期**

根據實際需求，決定是否需要重複觸發流程。支持每年、每月、每周和不重複。

例如，選擇員工的入職日期作為觸發條件，重複周期選擇「每年」；某個員工的入職日期是 2018 年 8 月 22 日，那麼每年的 8 月 22 日都會觸發流程。

**3.2.5 設置篩選條件**

只有滿足條件的記錄才能觸發流程；如果不滿足設置的條件，日期到了也不會觸發流程。

比如向員工發送入職周年祝福短信，只有「在職」狀態的員工才需要觸發執行。

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

### 4. 配置流程後續的自動化作業

配置好觸發器，就可以開始配置計劃執行的動作，添加需要的動作節點即可。

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

添加並配置「發送站內通知」節點。

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

### 5. 發布流程

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