我们正在尝试使用Teams,Flow和Assembla创建批准工作流程,并且遇到了一些麻烦.
我们已成功设置了一些部分但是我们无法从团队中的卡片发起POST操作.
在团队中,我们可以使用传入的webhook连接器成功创建一张卡片.

这是使用Flow中的POST操作的以下JSON主体创建的
{
"@@type": "MessageCard",
"@@context": "http://schema.org/extensions",
"summary": "This is the summary property",
"themeColor": "f46b42",
"sections": [
{
"startGroup": true,
"title": "**Pending Review**",
"activityTitle": "Ticket Title",
"activitySubtitle": "Requested by: ",
"facts": [
{ "name": "Date submitted:", "value": "06/27/2017, 2:44 PM" },
{ "name": "Details:",
"value": "This ticket is ready for review." }
]
},
{
"potentialAction": [
{
"@@type": "HttpPOST",
"name": "Approve",
"target": "ANOTHER-POST-URL-IS-HERE"
},
{
"@@type": "HttpPOST",
"name": "Deny",
"target": "ANOTHER-POST-URL-IS-HERE"
}
]
}
]
}
Run Code Online (Sandbox Code Playgroud)
我们有另一个Flow …