我正在开发一个程序,使用连接器将某些功能从我们的服务台软件扩展到Microsoft团队。
此卡片将有一个下拉菜单,您可以在其中选择将案件分配给哪个人。
该卡已成功发布,但当我点击卡中的下拉菜单时,没有任何反应。我知道显示值对是正确设置的,因为如果我设置" isMultiSelect"如果它显示我的选择(但这不是多选,所以我不能这样做。)
Here是Microsoft我使用的代码示例,请查看"示例连接器消息" - 以下是我的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
有谁能告诉我我做错了什么 - 或者这里有错误?
提前致谢,
艾云
答案 0 :(得分:0)
我正在尝试使用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"}
此致 瓦桑特