DingTalkNoticeActivity
分类: 消息通知
命名空间: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys
基类: ActionActivity
模块: FlowManagement.Domain
概述
DingTalkNoticeActivity(钉钉群消息)是用于在流程中发送钉钉群机器人消息的节点。它继承自 ActionActivity,支持文本、Markdown 和互动卡片三种消息类型。
官方文档:https://developers.dingtalk.com/document/app/custom-robot-access
配置说明
| 属性名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| WebHook | string | 是 | - | 钉钉机器人 WebHook 地址 |
| Secret | string | 否 | - | 签名校验密钥 |
| IntervalSeconds | int | 否 | 10 | 同一消息发送间隔(秒) |
| NoticeType | DingtalkNoticeType | 是 | Text | 消息类型(Text/Markdown/Card) |
| Title | string | 是 | - | 消息主题 |
| Text | string | 否 | - | 文本消息内容 |
| Message | string | 否 | - | Markdown 消息内容 |
| CardText | string | 否 | - | 互动卡片消息内容 |
| SingleTitle | string | 否 | - | 卡片按钮标题 |
| SingleURL | string | 否 | - | 卡片跳转链接 |
| BtnOrientation | string | 否 | - | 按钮排列(0:竖直,1:横向) |
使用示例
文本消息
{
"Type": "DingTalkNoticeActivity",
"Name": "发送钉钉通知",
"Alias": "DingTalkNotify",
"WebHook": "https://oapi.dingtalk.com/robot/send?access_token=xxx",
"NoticeType": "Text",
"Title": "流程通知",
"Text": "流程执行完成,产品:{ProductName_Value}"
}
Markdown 消息
{
"Type": "DingTalkNoticeActivity",
"Name": "发送Markdown通知",
"Alias": "DingTalkMarkdown",
"WebHook": "https://oapi.dingtalk.com/robot/send?access_token=xxx",
"NoticeType": "Markdown",
"Title": "生产报告",
"Message": "## 生产报告\n- 产品:{ProductName_Value}\n- 数量:{Quantity_Value}"
}
注意事项
- 💡 支持使用 {变量名} 格式引用流程上下文
- 💡 IntervalSeconds 用于防止消息发送过于频繁
- ⚠️ WebHook 地址需要在钉钉群中配置机器人获取
相关节点
- FeishuNoticeActivity: 飞书通知节点
- WeChatNoticeActivity: 微信通知节点
- WebNoticeActivity: Web 通知节点
更新历史
| 日期 | 版本 | 说明 |
|---|---|---|
| 2025-11-28 | 1.0 | 初始版本 |
本文档最后更新时间: 2025-11-28