Adaptive Card/Actionable Message显示异常及功能问题求助
基于Power Automate + Microsoft Lists的可操作邮件工作流问题解决
场景说明
我用Power Automate和Microsoft Lists搭建了工作流,用户点击列表特定项链接后触发流程,会收到带预填现有记录值的可操作更新表单邮件,工作流主体已完成,现需解决以下细节问题:
待解决问题及方案
1. Save按钮未显示蓝色样式、2. Cancel Class按钮未显示红色样式
- 必须使用Power Automate的**「发送可操作邮件」**动作(而非普通发送邮件),Outlook仅对该动作发送的Adaptive Card支持
style属性渲染。 - 确认
originator字段为Microsoft 365管理中心注册的有效ID,无效ID会导致样式不生效。 - 保持Adaptive Card版本为1.0,高版本对
Action.Http的样式支持存在兼容性问题。
3. Cancel Class按钮需在未填写必填项时仍保持可用
你已在Cancel按钮配置中添加"ignoreInputValidation": true,该配置正确,需确保Power Automate发送邮件时完整引用了包含该属性的Adaptive Card JSON,未出现属性丢失情况。
4. 必须设置version=1.0(设为1.4时Action.Http按钮不显示)
这是Outlook与Power Automate集成的兼容性限制,1.0版本是当前对Action.Http支持最稳定的版本,建议保持使用,不要升级到更高版本。
5. 非Outlook客户端打开邮件时显示提示
可以通过两种方式实现:
- 邮件正文补充提示:在发送邮件的正文开头添加普通文本:
**请注意:此消息需在Outlook客户端中查看才能使用更新功能** - Adaptive Card fallback配置:在Card最外层添加
fallback属性,指定非支持客户端显示内容,修改后的Card代码已包含该配置。
修改后的Adaptive Card代码
{ "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.0", "originator": "redacted", "fallback": { "type": "TextBlock", "text": "This message must be viewed in Outlook", "size": "large", "color": "warning", "wrap": true }, "body": [ { "type": "Container", "items": [ { "type": "TextBlock", "text": "As requested, here is your update form", "wrap": true }, { "type": "TextBlock", "text": "District: @{variables('District')}", "wrap": true }, { "type": "TextBlock", "text": "Date: @{variables('Start Date')}", "wrap": true }, { "type": "TextBlock", "text": "Class Size*", "wrap": true }, { "type": "Input.Number", "placeholder": "1", "id": "size", "value": @{variables('Class Size')} //replace with 1 in designer }, { "type": "TextBlock", "text": "Start Time*", "wrap": true }, { "type": "Input.Text", "placeholder": "Start Time", "id": "starttime", "isRequired": true, "label": "Start Time", "errorMessage": "Required", "value": "@{variables('Start Time')}" }, { "type": "TextBlock", "text": "Class Location*", "wrap": true }, { "type": "Input.Text", "placeholder": "Class Location", "id": "location", "isRequired": true, "label": "Class Location", "errorMessage": "Required", "value": "@{variables('Class Location')}" }, { "type": "TextBlock", "text": "AT&T FOB*", "wrap": true }, { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "true" }, { "title": "No", "value": "false" } ], "placeholder": "AT&T Fob", "id": "fob", "label": "AT&T FOB", "isRequired": true, "errorMessage": "Required", "style": "expanded", "value": "@{variables('FOB')}" } ] }, { "type": "Container", "items": [ { "type": "ActionSet", "actions": [ { "type": "Action.Http", "title": "Save", "method": "POST", "url": "redacted", "body": "{\n\"starttime\":\"{{starttime.value}}\",\n\"location\":\"{{location.value}}\",\n\"fob\":\"{{fob.value}}\",\n\"size\":\"{{size.value}}\",\n\"id\": @{triggerOutputs()['relativePathParameters']['id']}\n}", "headers": [ { "name": "Authorization", "value": "" }, { "name": "Content-Type", "value": "application/json" } ], "style": "positive", "id": "save" }, { "type": "Action.Http", "title": "Cancel Class", "style": "destructive", "ignoreInputValidation": true, "method": "POST", "url": "redacted", "body": "{\n\"starttime\":\"{{starttime.value}}\",\n\"location\":\"{{location.value}}\",\n\"fob\":\"{{fob.value}}\",\n\"size\":\"{{size.value}}\",\n\"id\": @{triggerOutputs()['relativePathParameters']['id']}\n}", "headers": [ { "name": "Authorization", "value": "" }, { "name": "Content-Type", "value": "application/json" } ], "id": "cancel" } ], "horizontalAlignment": "Left", "spacing": "Medium" } ] } ] }
流步骤截图

内容的提问来源于stack exchange,提问作者Tristen Hannah
相关产品推荐
相关产品推荐

