Microsoft Teams 的消息传递扩展不显示用于搜索的多个参数列表
Messaging Extension for Microsoft Teams doesn't display multiple parameter list for search
我正在尝试使用 Teams 消息传递扩展来使用多个字段进行搜索。根据 MS Teams docs,应该可以为 "query" 类型的消息扩展指定多个参数。
For search based messaging extension set the type parameter to query.
Below is an example of a manifest with a single search command. A
single messaging extension can have up to 10 different commands
associated with it. This can include both multiple search and multiple
Action-based commands.
但是,据我所知,多个参数仅适用于操作类型,不适用于查询。我只看到一个用于搜索的文本框,而我的清单指定了多个字段。
以下是清单的节选。
"composeExtensions": [
{
"botId": "[omitted]",
"canUpdateConfiguration": true,
"commands": [
{
"id": "search",
"type": "query",
"title": "search",
"description": "search",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"compose",
"message"
],
"parameters": [
{
"name": "hello",
"title": "hello",
"description": "hello",
"inputType": "text"
},
{
"name": "test",
"title": "test",
"description": "test",
"inputType": "text"
}
]
},
{
"id": "addTodo",
"type": "action",
"title": "Create To Do",
"description": "Create a To Do item",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"message",
"compose"
],
"parameters": [
{
"name": "Name",
"title": "Title",
"description": "To Do Title",
"inputType": "text"
},
{
"name": "Description",
"title": "Description",
"description": "Description of the task",
"inputType": "textarea"
},
{
"name": "Date",
"title": "Date",
"description": "Due date for the task",
"inputType": "date"
}
]
}
]
}
],
如果您能帮助我确定这是否可行,我将不胜感激。如果没有,还有其他选择吗?我的用例涉及用户进行私人搜索(即与他们聊天的人无法查看搜索 result/query)和 select 列表中的适当结果并通过以下方式发送给另一个人聊天。
提前致谢。
您需要指定多个搜索命令,而不是多个参数(每个搜索命令一个参数)。另请注意,您实际上无法从消息中触发基于搜索的命令,因此您应该只为它们包含 compose 和 commandBox 范围。
您可以在 GitHub Teams 应用程序中看到它的外观:
我正在尝试使用 Teams 消息传递扩展来使用多个字段进行搜索。根据 MS Teams docs,应该可以为 "query" 类型的消息扩展指定多个参数。
For search based messaging extension set the type parameter to query. Below is an example of a manifest with a single search command. A single messaging extension can have up to 10 different commands associated with it. This can include both multiple search and multiple Action-based commands.
但是,据我所知,多个参数仅适用于操作类型,不适用于查询。我只看到一个用于搜索的文本框,而我的清单指定了多个字段。
以下是清单的节选。
"composeExtensions": [
{
"botId": "[omitted]",
"canUpdateConfiguration": true,
"commands": [
{
"id": "search",
"type": "query",
"title": "search",
"description": "search",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"compose",
"message"
],
"parameters": [
{
"name": "hello",
"title": "hello",
"description": "hello",
"inputType": "text"
},
{
"name": "test",
"title": "test",
"description": "test",
"inputType": "text"
}
]
},
{
"id": "addTodo",
"type": "action",
"title": "Create To Do",
"description": "Create a To Do item",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"message",
"compose"
],
"parameters": [
{
"name": "Name",
"title": "Title",
"description": "To Do Title",
"inputType": "text"
},
{
"name": "Description",
"title": "Description",
"description": "Description of the task",
"inputType": "textarea"
},
{
"name": "Date",
"title": "Date",
"description": "Due date for the task",
"inputType": "date"
}
]
}
]
}
],
如果您能帮助我确定这是否可行,我将不胜感激。如果没有,还有其他选择吗?我的用例涉及用户进行私人搜索(即与他们聊天的人无法查看搜索 result/query)和 select 列表中的适当结果并通过以下方式发送给另一个人聊天。
提前致谢。
您需要指定多个搜索命令,而不是多个参数(每个搜索命令一个参数)。另请注意,您实际上无法从消息中触发基于搜索的命令,因此您应该只为它们包含 compose 和 commandBox 范围。
您可以在 GitHub Teams 应用程序中看到它的外观: