自适应卡片中的人员选取器自适应元素在 Teams Android 应用程序中不起作用
People Picker adaptive element in adaptive cards doesn't work in Teams Android app
我正在尝试在我的自适应卡片中使用人员选取器元素,它在桌面版和 iPhone 版 Teams 上运行良好。 Android 的团队仅显示“现在无法显示选项”错误消息。
我遗漏了什么或者这是 Microsoft 方面的错误?
为了全面披露,这是 JSON 提供给 Teams 的:
{
"task": {
"value": {
"card": {
"content": {
"type": "AdaptiveCard",
"body": [
{
"isMultiline": false,
"maxLength": 0,
"style": null,
"value": "10",
"isRequired": false,
"id": "xxxId",
"separator": false,
"isVisible": false,
"type": "Input.Text"
},
{
"columns": [
{
"width": "100px",
"items": [
{
"horizontalAlignment": null,
"selectAction": {
"data": {
"formAction": "showXXX"
},
"type": "Action.Submit"
},
"size": "large",
"style": null,
"url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fmedia.xxx.com%2fapp%2fimages%2fxxx%2fsmall%2fyyy.png",
"height": "auto",
"separator": false,
"type": "Image"
}
],
"verticalContentAlignment": "center",
"separator": false,
"type": "Column"
},
{
"width": "200px",
"items": [
{
"color": null,
"horizontalAlignment": null,
"isSubtle": false,
"maxLines": 0,
"size": null,
"text": "ZZZ",
"weight": null,
"wrap": true,
"separator": false,
"type": "TextBlock"
},
{
"actions": [
{
"data": {
"formAction": "showXXX"
},
"title": "change",
"type": "Action.Submit"
}
],
"separator": false,
"type": "ActionSet"
}
],
"verticalContentAlignment": "center",
"separator": false,
"type": "Column"
}
],
"spacing": "extraLarge",
"separator": true,
"type": "ColumnSet"
},
{
"choices": [],
"isMultiSelect": true,
"style": "filtered",
"value": "",
"wrap": true,
"choices.data": {
"type": "Data.Query",
"dataset": "graph.microsoft.com/users?scope=currentContext"
},
"isRequired": false,
"label": "Search Recipients",
"id": "recipientIds",
"separator": false,
"type": "Input.ChoiceSet"
},
{
"isMultiline": true,
"maxLength": 125,
"style": null,
"value": "",
"isRequired": false,
"errorMessage": "Enter a recipient message",
"label": "Message for recipient(s):",
"id": "message",
"spacing": "large",
"separator": true,
"type": "Input.Text"
}
],
"actions": [
{
"data": {
"formAction": "finalSubmit"
},
"title": "Send",
"style": "positive",
"type": "Action.Submit"
}
],
"version": "1.0"
},
"contentType": "application/vnd.microsoft.card.adaptive"
},
"width": 550
},
"type": "continue"
},
"responseType": "task"
}
这是 Teams 中已确认的错误。目前,我们已获得 Teams 应用审查流程的例外。
我正在尝试在我的自适应卡片中使用人员选取器元素,它在桌面版和 iPhone 版 Teams 上运行良好。 Android 的团队仅显示“现在无法显示选项”错误消息。
我遗漏了什么或者这是 Microsoft 方面的错误?
为了全面披露,这是 JSON 提供给 Teams 的:
{
"task": {
"value": {
"card": {
"content": {
"type": "AdaptiveCard",
"body": [
{
"isMultiline": false,
"maxLength": 0,
"style": null,
"value": "10",
"isRequired": false,
"id": "xxxId",
"separator": false,
"isVisible": false,
"type": "Input.Text"
},
{
"columns": [
{
"width": "100px",
"items": [
{
"horizontalAlignment": null,
"selectAction": {
"data": {
"formAction": "showXXX"
},
"type": "Action.Submit"
},
"size": "large",
"style": null,
"url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fmedia.xxx.com%2fapp%2fimages%2fxxx%2fsmall%2fyyy.png",
"height": "auto",
"separator": false,
"type": "Image"
}
],
"verticalContentAlignment": "center",
"separator": false,
"type": "Column"
},
{
"width": "200px",
"items": [
{
"color": null,
"horizontalAlignment": null,
"isSubtle": false,
"maxLines": 0,
"size": null,
"text": "ZZZ",
"weight": null,
"wrap": true,
"separator": false,
"type": "TextBlock"
},
{
"actions": [
{
"data": {
"formAction": "showXXX"
},
"title": "change",
"type": "Action.Submit"
}
],
"separator": false,
"type": "ActionSet"
}
],
"verticalContentAlignment": "center",
"separator": false,
"type": "Column"
}
],
"spacing": "extraLarge",
"separator": true,
"type": "ColumnSet"
},
{
"choices": [],
"isMultiSelect": true,
"style": "filtered",
"value": "",
"wrap": true,
"choices.data": {
"type": "Data.Query",
"dataset": "graph.microsoft.com/users?scope=currentContext"
},
"isRequired": false,
"label": "Search Recipients",
"id": "recipientIds",
"separator": false,
"type": "Input.ChoiceSet"
},
{
"isMultiline": true,
"maxLength": 125,
"style": null,
"value": "",
"isRequired": false,
"errorMessage": "Enter a recipient message",
"label": "Message for recipient(s):",
"id": "message",
"spacing": "large",
"separator": true,
"type": "Input.Text"
}
],
"actions": [
{
"data": {
"formAction": "finalSubmit"
},
"title": "Send",
"style": "positive",
"type": "Action.Submit"
}
],
"version": "1.0"
},
"contentType": "application/vnd.microsoft.card.adaptive"
},
"width": 550
},
"type": "continue"
},
"responseType": "task"
}
这是 Teams 中已确认的错误。目前,我们已获得 Teams 应用审查流程的例外。