我正在开发一个程序,使用连接器将一些功能从我们的服务台软件扩展到Microsoft团队。
这张卡将有一个下拉菜单,您可以选择将案例分配给哪个人。
卡片已成功投递,但当我单击卡片中的下拉菜单时,没有任何反应。我知道显示值对的设置是正确的,因为如果我将"isMultiSelect“设置为true,它将显示我的选择(但这不是多选的,所以我不能有它)。
Here是我使用的来自微软的代码示例,请看“示例连接器消息”--下面是我的JSON。根据这个例子,我相信它是正确的。
JSON:
{
"summary": "my summary",
"title": "Main title",
"sections": [
{
"activitySubtitle": "ActivitySubtitle",
"activityImage": "http://www.ironmagazine.com/wp-content/uploads/arnold-schwarzenegger-420x327.jpg",
"activityTitle": "ActivityTitle",
"activityText": "ActivityText"
},
{
"facts": [
{
"value": "Facts1 - value",
"name": "Facts1 - name"
},
{
"value": "Facts2 - value",
"name": "Facts2 - name"
}
],
"title": "See more - Tittel "
}
],
"potentialAction": [
{
"actions": [
{
"name": "Add comment",
"target": "http://www.vg.no",
"@type": "HttpPost"
}
],
"inputs": [
{
"target": "https://www.vg.no",
"id": "Comment",
"@type": "TextInput"
}
],
"name": "Add comment",
"@type": "Actioncard"
},
{
"actions": [
{
"name": "Save",
"target": "http://www.vg.no",
"@type": "HttpPost"
}
],
"inputs": [
{
"title": "enter a due date",
"id": "dueDate",
"@type": "DateInput"
}
],
"name": "Set due date",
"@type": "Actioncard"
},
{
"actions": [
{
"name": "Save",
"target": "http://www.vg.no",
"@type": "HttpPost"
}
],
"inputs": [
{
"title": "Assign case to..",
"isMultiSelect": "false",
"choices": [
{
"value": "1",
"display": "Person1"
},
{
"value": "2",
"display": "Person2"
},
{
"value": "3",
"display": "Person3"
},
{
"value": "4",
"display": "Person4"
}
],
"id": "list",
"@type": "MultichoiceInput"
}
],
"name": "Assign case",
"@type": "Actioncard"
}
],
"text": "Main text"}
这是我的名片现在的样子:Imgur
有人能告诉我我做错了什么吗--或者这里可能有一个bug?
提前谢谢你,
Arve
发布于 2017-07-18 03:54:37
我正在尝试JSON负载,它工作得很好。请尝试此paylod一次,如果您仍然看到此问题,请让我们知道。
{
"summary": "my summary",
"title": "Main title",
"sections": [{
"activitySubtitle": "ActivitySubtitle",
"activityImage": "http://www.ironmagazine.com/wp-content/uploads/arnold-schwarzenegger-420x327.jpg",
"activityTitle": "ActivityTitle",
"activityText": "ActivityText"
}, {
"facts": [{
"value": "Facts1 - value",
"name": "Facts1 - name"
}, {
"value": "Facts2 - value",
"name": "Facts2 - name"
}
],
"title": "See more - Tittel "
}
],
"potentialAction": [{
"actions": [{
"name": "Add comment",
"target": "http://www.vg.no",
"@type": "HttpPOST"
}
],
"inputs": [{
"target": "https://www.vg.no",
"id": "Comment",
"@type": "TextInput"
}
],
"name": "Add comment",
"@type": "ActionCard"
}, {
"actions": [{
"name": "Save",
"target": "http://www.vg.no",
"@type": "HttpPOST"
}
],
"inputs": [{
"title": "enter a due date",
"id": "dueDate",
"@type": "DateInput"
}
],
"name": "Set due date",
"@type": "ActionCard"
}, {
"actions": [{
"name": "Save",
"target": "http://www.vg.no",
"@type": "HttpPOST"
}
],
"inputs": [{
"title": "Assign case to..",
"isMultiSelect": "false",
"choices": [{
"value": "1",
"display": "Person1"
}, {
"value": "2",
"display": "Person2"
}, {
"value": "3",
"display": "Person3"
}, {
"value": "4",
"display": "Person4"
}
],
"id": "list",
"@type": "MultichoiceInput"
}
],
"name": "Assign case",
"@type": "ActionCard"
}
],
"text": "Main text"}致敬,Vasant
https://stackoverflow.com/questions/45074008
复制相似问题