微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Microsoft团队:带有基于搜索的命令的邮件扩展

如何解决Microsoft团队:带有基于搜索的命令的邮件扩展

我正在测试Teams Messaging Extension中基于搜索的命令。使用“ YO TEAMS”创建解决方案并使用BotId / AppId和密码/ Secret在Azure中创建BOT之后。并将它们作为值添加解决方案的.env文件中。

通过运行命令“ gulp ngrok-serve”,我会生成ngrok url,看起来应该没问题。但是通过从Teams的package文件夹中上传一个.zip文件,我收到错误消息“无法访问应用程序,请重试”。

enter image description here

为了测试,我创建了仅使用“ Tab”的另一个解决方案。当我尝试上传.zip时,我得到几乎相同的错误消息, “到达此应用程序时出现问题”

enter image description here

有许多令人沮丧的教程,有些又有些新。通过运行命令“ gulp ngrok-serve”,可以启动用于隧道的ngrok。并且生成的ngrok URL似乎可以工作:

enter image description here

该URL被存储为Azure中BOT的终结点:

enter image description here

那我不能在这里错过什么呢?

这是我的清单文件

 {
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.6/MicrosoftTeams.schema.json","manifestVersion": "1.6","id": "{{APPLICATION_ID}}","version": "{{VERSION}}","packageName": "{{PACKAGE_NAME}}","developer": {
    "name": "gonadn consulting","websiteUrl": "https://{{HOSTNAME}}","privacyUrl": "https://{{HOSTNAME}}/privacy.html","termsOfUseUrl": "https://{{HOSTNAME}}/tou.html"
  },"name": {
    "short": "TeamsMsgExtSearch","full": "TeamsMsgExtSearch"
  },"description": {
    "short": "Todo: add short description here","full": "Todo: add full description here"
  },"icons": {
    "outline": "icon-outline.png","color": "icon-color.png"
  },"accentColor": "#D85028","configurableTabs": [],"staticTabs": [],"bots": [],"connectors": [],"composeExtensions": [
    {
      "botId": "{{MICROSOFT_APP_ID}}","canUpdateConfiguration": false,"commands": [
        {
          "id": "msgSearchCommandMessageExtension","title": "MsgSearchCommand","description": "Add a cLever description here","initialRun": true,"parameters": [
            {
              "name": "parameter","description": "Description of the parameter","title": "Parameter"
            }
          ],"type": "query"
        }
      ]
    }
  ],"permissions": [
    "identity","messageTeamMembers"
  ],"validDomains": [
    "{{HOSTNAME}}"
  ],"showLoadingIndicator": false
}

链接Git Repo

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。