简体   繁体   English

无法通过 azure 中的逻辑应用向 Microsoft Teams 发布消息

[英]Can't post a message to Microsoft Teams via logic app in azure

I have a logic app in azure that is as follows.我有一个天蓝色的逻辑应用程序,如下所示。 天蓝色的逻辑应用程序

The parse JSON is - json(decodeBase64(triggerBody()?['ContentData']))解析 JSON 是 - json(decodeBase64(triggerBody()?['ContentData']))

The output of the parseJSON is: parseJSON 的输出是:

Body身体

  {
    "Message": "New message from logic app",
    "TeamID": "testNotificationsTeams",
    "ChannelID": "General"
  }

留言画面 In the post message I have TeamID, ChannelID, and Message.在帖子消息中,我有 TeamID、ChannelID 和 Message。 They all get filled with the right info, but I still get an error:他们都填写了正确的信息,但我仍然收到错误消息:

  {
   "error": {
   "code": "BadRequest",
   "message": "teamGroupId needs to be a valid GUID.",
   "innerError": {
     "date": "2020-10-08T06:42:57",
     "request-id": "a0f985df-113e-48d5-8386-25c1752e7d05",
     "client-request-id": "a0f985df-113e-48d5-8386-25c1752e7d05"
 }
}

I can't understand why I am getting this error, what is wrong ?我不明白为什么我会收到这个错误,出了什么问题?

问题是我没有发送正确的 teamdID 和 ChannelID。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 powershell 向 MS 团队发布消息 - Post message to MS Teams via powershell 无法使用 Azure 逻辑应用访问 XML 中的某些项目 - Can't access some items in XML using Azure Logic App 使用Azure Logic App通过HTTP Post(JSON)插入来自SurveyGizmo的响应 - Using Azure Logic App to Insert Response from SurveyGizmo via HTTP Post (JSON) Azure Monitor Alerts 使用 webhook 到 Microsoft Teams - 没有消息到 Teams - Azure Monitor Alerts using webhook to Microsoft Teams - No messages to Teams 在 Azure 逻辑应用程序中,如何从某些结果中包含的日期中删除 T 时间部分 - In Azure Logic App, how can I remove the T time part from a date contained in some results Azure 逻辑应用 HTTP Post 使用动态变量构建 JSON - Azure Logic App HTTP Post build JSON with Dynamic Variables 可以将Microsoft Bot加载到MS Teams中,但是我不能与该机器人进行交互 - Loading Microsoft Bot into MS Teams works, but I can't interact with the bot 删除“可操作的消息” Microsoft团队中的“查看更多”(所有内容的默认视图) - Remove See More (Default view for everything) in Actionable Message Microsoft teams 为通过 Microsoft Graph 创建的团队禁用了分配屏幕 - Assignment screen disabled for Teams created via Microsoft Graph 如何在Azure逻辑应用程序中使用replace()表达式从json输入消息中删除一个属性? - How to remove one property from json input message using replace() expression in azure logic app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM