Microsoft Power Automate + pushplus:办公流程推到微信
效果:审批、邮件、表单等云流程触发后,用 HTTP 操作 POST JSON 到 pushplus。
前置条件
- 一个 pushplus token(官网扫码获取)
- Power Automate 环境,能使用 HTTP 操作(通常需相应许可)
配置步骤
- 新建云流程,触发器选 Outlook、Forms、SharePoint、审批等。
- 添加操作 HTTP:
- 方法:
POST - URI:
https://www.pushplus.plus/send - 标头:
Content-Type=application/json - 正文:
- 方法:
{
"token": "@{parameters('pushplusToken')}",
"title": "Power Automate 通知",
"content": "@{triggerBody()?['Title']}",
"template": "txt"
}
把 content 换成动态内容里的字段。content 不能为空。
- token 放「敏感文本」参数或环境变量,不要写进可导出的方案说明。
不能自定义 body 时,把 HTTP 改成 GET,URI 用固定文案:
https://www.pushplus.plus/send?token=你的token&title=PowerAutomate通知&content=有新的流程事件
验证
curl -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d '{"token":"你的token","title":"Power Automate 配置测试","content":"token 可用","template":"markdown"}'
在设计器点「测试」跑一次,HTTP 响应 JSON 的 code 应为 200。
常见问题
没有 HTTP 操作? 当前环境许可可能不含该连接器,可改用 Pipedream / Make 做同一条 POST。
动态内容带对象导致失败? 先加「撰写」拼成纯文本再放入 content。