Error: Failed to send Target is not set or not in URL format(Microsoft Teams)
Error: Failed to send Target is not set or not in URL format(Microsoft Teams)
"potentialAction": [
{
"@type": "HttpPOST",
"name": "Renew",
"targets": "url"
}
我正在尝试通过 Microsoft Teams 中的连接卡执行 HttpPost 操作,但每当我单击操作按钮时,我都会收到 "Failed to send Target is not set or not in URL format" 错误。有人可以帮我解决这个错误吗?
为此您需要使用 "target" 而不是 "targets"。请尝试使用以下有效负载,它应该可以工作:
"potentialAction": [{
"@type": "HttpPOST",
"name": "Submit",
"target": "https:// ..."
}]
"potentialAction": [
{
"@type": "HttpPOST",
"name": "Renew",
"targets": "url"
}
我正在尝试通过 Microsoft Teams 中的连接卡执行 HttpPost 操作,但每当我单击操作按钮时,我都会收到 "Failed to send Target is not set or not in URL format" 错误。有人可以帮我解决这个错误吗?
为此您需要使用 "target" 而不是 "targets"。请尝试使用以下有效负载,它应该可以工作:
"potentialAction": [{
"@type": "HttpPOST",
"name": "Submit",
"target": "https:// ..."
}]