使用 Power Automate发送图文并茂的Teams消息
前言
最近,有朋友使用Automate发送Teams消息,发现如果图片在SharePoint中,发送的时候因为认证的问题图片没办法显示。
其实,我们可以将图片转换成Base64流进行引用,就能正常的显示了。
正文
1.我们新建一个Automate Flow,如下图:
2.然后,添加Teams操作,如下图:
3.消息我们需要填入一个JSON,JSON如下:
{ "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "欢迎来到天津之眼游玩", "style": "heading", "wrap": true }, { "type": "Image", "url": "@{variables('Image')}" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.3" }
4.最后,我们看一下效果,如下图:
结束语
其实,使用Automate和Teams互动,是Microsoft 365使用中非常好的场景,比如定期发一些宣传片,新闻,相当的哇塞!
博文推荐: |
SharePoint 2013 WebPart 管理工具分享[开源] |
基于SharePoint 2013的论坛解决方案[开源] |
SharePoint 2013 学习基础系列入门教程 |
SharePoint 2013 图文开发系列之门教程 |
SharePoint Designer 学习系列入门教程 |
特:如果有Power Platform、Azure、Microsoft 365、SharePoint项目,欢迎邮件联系我,Email:linyu_s@163.com |