You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

移动端MS Teams无法完整渲染Adaptive Card问题求助

问题:Teams移动端无法完整渲染Power Automate发送的Adaptive Card

我查了大量论坛及相关问题,现有答案均无法解决我的问题。Adaptive Card在旧版webhooks中可正常工作,但使用Power Automate工作流时出现异常:搭建的工作流解析webhook请求的JSON后,将Adaptive Card发送至Teams频道,卡片在桌面端可完整显示,但移动端仅能显示标题。尝试将type改为message而非Adaptive Card后,移动端无任何内容仅提示有消息发送;调整version属性也无效果。

桌面端显示:
桌面端完整渲染的Adaptive Card

移动端显示:
移动端仅渲染标题

我的Adaptive Card JSON

{    
    "type": "AdaptiveCard",    
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",    
    "version": "1.4",    
    "msteams": {        
        "width": "Full"    
    },    
    "body": [{        
        "type": "TextBlock",        
        "text": "Uptime Monitor",        
        "wrap": true,        
        "fontType": "Monospace",        
        "size": "ExtraLarge",        
        "weight": "Bolder",        
        "color": "Attention",        
        "style": "heading"    
    }, {        
        "type": "Table",        
        "columns": [{            
            "width": "auto"        
        }, {            
            "width": "auto"        
        }, {            
            "width": "auto"        
        }],        
        "rows": [{            
            "type": "TableRow",            
            "cells": [{                
                "type": "TableCell",                
                "items": [{                    
                    "type": "TextBlock",                    
                    "text": "URI",                    
                    "wrap": true,                    
                    "fontType": "Monospace",                    
                    "color": "Default"                
                }],                
                "style": "warning"            
            }, {                
                "type": "TableCell",                
                "items": [{                    
                    "type": "TextBlock",                    
                    "text": "Down since",                    
                    "wrap": true,                    
                    "fontType": "Monospace",                    
                    "color": "default"                
                }],                
                "style": "warning"            
            }, {                
                "type": "TableCell",                
                "items": [{                    
                    "type": "TextBlock",                    
                    "text": "Downtime (mins)",                    
                    "wrap": true,                    
                    "fontType": "Monospace",                    
                    "color": "default"                
                }],                
                "style": "warning"            
            }],            
            "style": "warning"        
        }, {            
            "type": "TableRow",            
            "cells": [{                
                "type": "TableCell",                
                "items": [{                    
                    "type": "TextBlock",                    
                    "text": "https://some.website.sample",                    
                    "wrap": true,                    
                    "horizontalAlignment": "Left",                    
                    "spacing": "None",                    
                    "fontType": "Monospace",                    
                    "size": "Medium",                    
                    "color": "Attention",                    
                    "isSubtle": false                
                }],                
                "style": "attention"            
            }, {                
                "type": "TableCell",                
                "items": [{                    
                    "type": "TextBlock",                    
                    "text": "24.01.2025 10:39:19",                    
                    "wrap": true,                    
                    "fontType": "Monospace",                    
                    "color": "Attention"                
                }],                
                "style": "attention"            
            }, {                
                "type": "TableCell",                
                "items": [{                    
                    "type": "TextBlock",                    
                    "text": "5",                    
                    "wrap": true,                    
                    "fontType": "Monospace",                    
                    "color": "Attention"                
                }],                
                "style": "attention"            
            }]        
        }]    
    }]
}

Power Automate生成的Schema

{    
    "type": "object",    
    "properties": {        
        "type": {            
            "type": "string"        
        },        
        "$schema": {            
            "type": "string"        
        },        
        "version": {            
            "type": "string"        
        },        
        "msteams": {            
            "type": "object",            
            "properties": {                
                "width": {                    
                    "type": "string"                
                }            
            }        
        },        
        "body": {            
            "type": "array",            
            "items": {                
                "type": "object",                
                "properties": {                    
                    "type": {                        
                        "type": "string"                    
                    },                    
                    "text": {                        
                        "type": "string"                    
                    },                    
                    "wrap": {                        
                        "type": "boolean"                    
                    },                    
                    "fontType": {                        
                        "type": "string"                    
                    },                    
                    "size": {                        
                        "type": "string"                    
                    },                    
                    "weight": {                        
                        "type": "string"                    
                    },                    
                    "color": {                        
                        "type": "string"                    
                    },                    
                    "style": {                        
                        "type": "string"                    
                    },                    
                    "columns": {                        
                        "type": "array",                        
                        "items": {                            
                            "type": "object",                            
                            "properties": {                                
                                "width": {                                    
                                    "type": "string"                                
                                }                            
                            },                            
                            "required": [                                
                                "width"                            
                            ]                        
                        }                    
                    },                    
                    "rows": {                        
                        "type": "array",                        
                        "items": {                            
                            "type": "object",                            
                            "properties": {                                
                                "type": {                                    
                                    "type": "string"                                
                                },                                
                                "cells": {                                    
                                    "type": "array",                                    
                                    "items": {                                        
                                        "type": "object",                                        
                                        "properties": {                                            
                                            "type": {                                                
                                                "type": "string"                                            
                                            },                                            
                                            "items": {                                                
                                                "type": "array",                                                
                                                "items": {                                                    
                                                    "type": "object",                                                    
                                                    "properties": {                                                        
                                                        "type": {                                                            
                                                            "type": "string"                                                        
                                                        },                                                        
                                                        "text": {                                                            
                                                            "type": "string"                                                        
                                                        },                                                        
                                                        "wrap": {                                                            
                                                            "type": "boolean"                                                        
                                                        },                                                        
                                                        "fontType": {                                                            
                                                            "type": "string"                                                        
                                                        },                                                        
                                                        "color": {                                                            
                                                            "type": "string"                                                        
                                                        }                                                    
                                                    },                                                    
                                                    "required": [                                                        
                                                        "type",                                                        
                                                        "text",                                                        
                                                        "wrap",                                                        
                                                        "fontType",                                                        
                                                        "color"                                                    
                                                    ]                                                
                                                }                                            
                                            },                                            
                                            "style": {                                                
                                                "type": "string"                                            
                                            }                                        
                                        },                                        
                                        "required": [                                            
                                            "type",                                            
                                            "items",                                            
                                            "style"                                        
                                        ]                                    
                                    }                                
                                },                                
                                "style": {                                    
                                    "type": "string"                                
                                }                            
                            },                            
                            "required": [                                
                                "type",                                
                                "cells"                            
                            ]                        
                        }                    
                    }                
                },                
                "required": [                    
                    "type"                
                ]            
            }        
        }    
    }
}

内容的提问来源于stack exchange,提问作者sh_cy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 13:33:11