> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Form Message Notifications

> Learn about the message notification feature across editions (Free plan, Basic edition, Professional edition, Dedicated edition), including scheduled notifications and DingTalk To-Do messages, with detailed use cases and step-by-step guides.

| **Feature**                                         | **Free plan** | **Basic edition** | **Professional edition** | **Dedicated edition** |
| --------------------------------------------------- | ------------- | ----------------- | ------------------------ | --------------------- |
| Scheduled message notifications                     | Not supported | Supported         | Supported                | Supported             |
| DingTalk To-Do messages                             | Not supported | Supported         | Supported                | Supported             |
| Send message notifications via third-party services | Not supported | Supported         | Supported                | Supported             |

## 1. Introduction

### 1.1 Feature Overview

<Note>
  Applicable scope: applies to **page-level message notifications** on **regular forms** and **workflow forms** (supports the simplified new workflow designer; not compatible with the legacy advanced workflow designer). **Platform-level message notifications** and message notification steps in **integration & automation / workflow designer** do not yet support the capabilities below.
</Note>

For a detailed feature upgrade comparison, see the **Release notes**.

**Create notifications and templates**

Seven quick message notification templates are available. Click **Use this template** to enable one with a single click.

**Card template overview:**

**Note: images in messages must not exceed 2 MB, but their dimensions are not restricted.**

<table>
  <tr>
    <td>Work Notifications</td>
    <td>**Plain text message**<br />Suitable for notification-only plain messages that require no action.</td>
    <td>To send a DingTalk To-Do, turn on More settings.<br />Regular form<br />Workflow form</td>
  </tr>

  <tr>
    <td rowSpan={4}>Group message / Direct Message</td>
    <td>**Image-text detail card**<br />Suitable for image-text card views of form fields, with a link to view message details.</td>
    <td rowSpan={3}>**When sending to a group chat, the group must be an All-staff Chat or Internal Group.**</td>
  </tr>

  <tr>
    <td>**Image-text card**<br />Suitable for image-text card messages that require no action.</td>
  </tr>

  <tr>
    <td>**Plain text detail card**<br />Suitable for text card views of form fields, with a link to view message details.</td>
  </tr>

  <tr>
    <td>**Image-text comment card**<br />Suitable for plain-text card views of forms and supports commenting on form details.</td>
    <td>Click **Comments** to jump directly to the comment area of the current form detail page. Submitted comments are stored in the database.</td>
  </tr>

  <tr>
    <td rowSpan={2}>Group Pin</td>
    <td>**Image-text pinned card**<br />Suitable for image-text pinned card messages that require no action.</td>
    <td rowSpan={2}>Once pinned in a group, **the pin lasts for 1 day**.</td>
  </tr>

  <tr>
    <td>**Plain text pinned detail card**<br />Suitable for plain-text pinned card messages of forms, with a link to view message details.</td>
  </tr>
</table>

**Recipient type**

The three options User, Role, and Field are merged into a single entry point. "Notify by participant" is now a system field.

### 1.2 Use Cases

**Message notifications** are prompts sent to specified users or group chats when a form is submitted or edited, when a workflow starts or ends, or after an action is taken on another workflow step.

**Note**:

* Form message notifications can only send plain messages (that is, DingTalk Work Notifications). They cannot send DingTalk To-Do items.

## 2. Operation Guide

The following example shows how to send a group notification after a form is submitted, so you can experience the new **message notification** feature.

### 2.1 Step 1: Create a Message Notification

**Path**: click the target form / workflow form >> **Settings** >> **Page settings** >> **Message notifications** to open the message notification settings page.

Create a message notification.

### 2.2 Step 2: Select a Message Template

**Steps:**

1. Select the **Image-text detail card** template >> **Use this template**. (See Figure 2.2-1.)

Figure 2.2-1 Selecting a message template.

2. Configure the message notification template. (See Figure 2.2-2.)

Figure 2.2-2 Configuring the message notification template.

### 2.3 Configuration Guide

Now that you have a hands-on feel for the new message notification feature, let's take a closer look at each option.

#### 2.3.1 Trigger Conditions

Five trigger conditions are available:

* Created: sends a message notification when a form or workflow form entry is submitted successfully.
* Edited: sends a message notification when a submitted form entry is edited successfully.
* Deleted: sends a message notification when a submitted form entry is deleted successfully.
* Commented: sends a message notification when a submitted form entry is commented on successfully.
* Sent by form Date field: sends a message notification based on the value of a Date component in the form.

Trigger conditions.

#### 2.3.2 Recipients

Recipient types include:

User / Role / Field: specify users or roles in the organization, or users selected in a member component of the form (only YiDA Roles are supported for Role).

Via third-party service: select a third-party service configured under Platform management > Service registry.

Current group: group chats where the current app is enabled.

**Notes**:

* Recipients are the union of all users configured above. If the same person appears in multiple conditions, they receive the notification only once.
* A single message can be sent to a maximum of 100 recipients.

Recipient types.

#### 2.3.3 Content Configuration

Content configuration refers to the notification's message title and message content. Two options are available:

**Custom**: enter fixed values for the message title and content manually, or select fields from the form.

Custom notification content.

**Use a notification template**: select a notification template previously created on the Template management page. If no template exists, click **Template management** to create one. For details, see [Message notifications](/yida/platform-admin/fkfhud).

Using a notification template.

#### 2.3.4 Scheduled Messages

Scheduled messages are mainly used for custom, recurring scheduled reminders. The interval can range from one day to one year.

**Common use cases: employee work anniversary reminders, meeting booking reminders, and cafeteria dining reminders.**

Configured based on a form Date field.

**Note**: the send rule only needs to be configured when the trigger condition is **Sent by form Date field**. Other trigger conditions do not require it.

Set date reminder rules.

You can customize the scheduled reminder rule as either a recurring reminder or a one-time reminder.

<Note>
  Only Date component fields in the main form are currently supported as message notification trigger conditions. Date component fields in subforms and associated forms are not yet supported.
</Note>

**Examples:**

① If the current time is 10:00 AM and the reminder start time is 9:00 AM on the same day, and the reminder is set to fire only once, no reminder is triggered because the current time has already passed the reminder time.

② If the current time is 10:00 AM on April 20, 2021 and the reminder time is 9:00 AM the same day, and the reminder is set to fire daily, no reminder fires that day because the current time has already passed the reminder time. The next reminder will fire at 9:00 AM on April 21, 2021 (as long as the reminder time is earlier than the end time). If the reminder end time is April 20, 2021, no reminder will be triggered at 9:00 AM on April 21, 2021.

**Repeat types**

| **Repeat type**                                                    | **Reminder start time** | **Reminder end time** | **Description**                                                                                                                                                                                     |
| ------------------------------------------------------------------ | ----------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| One-time reminder                                                  | 2021/4/20 15:00         | ——                    | Push a reminder once at 15:00 on April 20, 2021.                                                                                                                                                    |
| Daily reminder                                                     | 2021/4/20 15:00         | 2021/4/21 23:59       | Push a reminder at 15:00 on April 20, 2021, and then every day thereafter (next at 15:00 on April 21, 2021, and so on), until 2021-4-21 23:59:59.                                                   |
| Weekly reminder                                                    | 2021/4/20 15:00         | 2021/4/30 23:59       | Push a reminder at 15:00 on April 20, 2021, and then every week thereafter (next at 15:00 on April 27, 2021, and so on), until 2021-4-30 23:59:59.                                                  |
| Every 2 weeks reminder                                             | 2021/4/20 15:00         | 2021/5/5 23:59        | Push a reminder at 15:00 on April 20, 2021, and then every two weeks thereafter (next at 15:00 on May 4, 2021, and so on), until 2021-5-5 23:59:59.                                                 |
| Monthly reminder                                                   | 2021/4/20 15:00         | 2021/6/20 23:59       | Push a reminder at 15:00 on April 20, 2021, and then every month thereafter (next at 15:00 on May 20, 2021, and so on), until 2021-6-20 23:59:59.                                                   |
| Yearly reminder                                                    | 2021/4/20 15:00         | 2022/4/20 23:59       | Push a reminder at 15:00 on April 20, 2021, and then every year thereafter (next at 15:00 on April 20, 2022, and so on), until 2022-4-20 23:59:59.                                                  |
| Custom repeat -<br />by week (every N weeks on specified weekdays) | 2021/4/20 15:00         | 2021/12/31 23:59      | When configuring a custom recurring reminder, you can specify one or more days of the week. For example, send reminders only on weekdays (Monday through Friday), with no reminders on weekends.    |
| Custom repeat -<br />by month (every N months on specified dates)  | <br />                  | 2021/12/31 23:59      | Select one or more specific dates within a month to trigger the reminder. (For example, if you set the reminder for the 31st of each month, no reminder is sent in months that do not have a 31st.) |

#### 2.3.5 Notification Validity

(1) Rules take effect immediately after they are configured and apply to historical form data (limited to the most recent 50,000 records).

(2) If a Date component used in a message notification is deleted from the form or workflow form, previously configured message notification tasks remain effective. To cancel message pushes, delete the corresponding message notification configuration.

### 2.4 Result Demonstration

Figure 2.3-1 Message notification result demonstration.

### 2.5 Notes

DingTalk imposes additional restrictions on message notifications, including:

1. DingTalk filters out messages with identical content and title. Each user receives a repeated message notification only once per day.

**Solution**: in the message notification template, include form field content that changes with every notification. The reference syntax is `$!{form field unique identifier}`.

1. DingTalk limits the number of Work Notifications each user receives per day. In YiDA, the limit is 2,000 messages per user per day. For details, see **DingTalk message limits**.
2. If a scheduled reminder is configured but the end date is not filled in when the form is submitted, the message notification will not be triggered.
3. When Card messages are pushed to group messages or group pins, note the following three points:

* The YiDA assistant bot can send up to 20 messages per group per minute.
* Once pinned in a group, the pin lasts for 1 day.
* When a workflow form card message is sent to a group (group message or group pin), sending a DingTalk To-Do at the same time is not supported.

## 3. FAQ

<AccordionGroup>
  <Accordion id="q1" title="3.1 How do I push messages to the current group?">
    (1) Open an All-staff Chat, Department Chat, or Internal Group where YiDA is enabled >> **More** >> **YiDA**.

    (2) Select the app for which you want to send notifications, and enable it.
  </Accordion>

  <Accordion id="q2" title="3.2 I configured a group pin notification, but why is it not shown pinned?">
    An in-group pinned card is displayed for only 1 day. After 1 day, it is no longer pinned.
  </Accordion>

  <Accordion id="q3" title="3.3 Will upgrading quick messages affect existing message notifications?">
    No. Work Notifications are automatically converted to Work Notifications, and To-Do items are automatically converted to DingTalk To-Do items.
  </Accordion>

  <Accordion id="q4" title="3.4 Why does the system show a warning that the message length cannot exceed 50 characters?">
    The message title supports a maximum of 50 characters.
  </Accordion>

  <Accordion id="q5" title="3.5 Why does the system show that More settings is enabled and cannot be turned off?">
    Once you enable **More settings** and click **Confirm** to save, it cannot be turned off.
  </Accordion>

  <Accordion id="q6" title="3.6 How do I set notifications to a DingTalk To-Do when using a template card?">
    If your workflow form needs to send notifications to a DingTalk To-Do, enable **More settings** when using a template card, and then choose **DingTalk To-Do**.

    **Notes:**

    * Only the first Work Notification template can be configured to send a DingTalk To-Do.
    * Once you enable **More settings** and click **Confirm** to save, it cannot be turned off.
  </Accordion>

  <Accordion id="q7" title="3.7 Why can't I select group chats from other organizations when selecting a specified group?">
    Group messages can only be sent to All-staff Chats and Internal Groups within the same organization. Other group types are not supported.

    You can view the group type at the location shown in the screenshot below.
  </Accordion>

  <Accordion id="q8" title="3.8 How do I remove a group app?">
    Open the group chat >> **More** >> a plugin added by group members >> the minus icon next to the app name.

    Note: if you configured message notifications to the current group, you can also cancel message pushes by removing the group app.
  </Accordion>

  <Accordion id="q9" title="3.9 Can bulk-imported data trigger message notifications?">
    Yes. When importing, select the options to trigger validation rules, associated business rules, and third-party service callbacks at the same time.

    **Note: this is a paid feature.**
  </Accordion>

  <Accordion id="q10" title="3.10 Why do the message notifications and To-Do rules configured on a workflow form not take effect?">
    Make sure you have published a new version of the workflow after configuring the rules.
  </Accordion>
</AccordionGroup>

### 3.11 A Scheduled Message Rule Based on a Form Date Has Reached Its Trigger Time but No Notification Was Sent

Once a scheduled message rule is saved, it applies only to newly submitted or newly edited data. Historical data that is not edited again will not trigger the rule.
