title: Adaptive Card's messageBack action for msteams provided by outgoing webhook fails with "The resource URL is misformatted."
body: <p>I have followed <a href="https://docs.microsoft.com/en-us/learn/modules/msteams-webhooks-connectors/3-exercise-outgoing-webhooks" rel="nofollow noreferrer">Extend Microsoft Teams Exercise - Create outgoing webhooks 3-exercise-outgoing-webhooks</a> to build a MS Teams Outgoing webhook, and successfully it returns planet themed Adaptive Cards.</p>
  <p>However, when I add a new messageBack action, following guidance on <a href="https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-actions#adaptive-cards-actions" rel="nofollow noreferrer">special Adaptive Card functionality that is specific to the Microsoft Teams channel</a>, it fails in its reply to the webhook.</p>
  <p>The added action I have used is copied verbatim and added to the actions list for <code>planetDisplayCard.json</code>:</p>
  <pre class="lang-json prettyprint-override"><code>  &quot;actions&quot;: [
      {
        &quot;type&quot;: &quot;Action.OpenUrl&quot;,
        &quot;title&quot;: &quot;Learn more on Wikipedia&quot;
      },
      {
        &quot;type&quot;: &quot;Action.Submit&quot;,
        &quot;title&quot;: &quot;Click me for messageBack&quot;,
        &quot;data&quot;: {
          &quot;msteams&quot;: {
              &quot;type&quot;: &quot;messageBack&quot;,
              &quot;displayText&quot;: &quot;I clicked this button&quot;,
              &quot;text&quot;: &quot;text to bots&quot;,
              &quot;value&quot;: &quot;{\&quot;bfKey\&quot;: \&quot;bfVal\&quot;, \&quot;conflictKey\&quot;: \&quot;from value\&quot;}&quot;
          }
        }
      }
  </code></pre>
  <p>The card renders in Teams, but when the button is clicked the following happen:</p>
  <ul>
  <li>Unexpected: We see <code>Something went wrong. Please try again.</code></li>
  <li>Expected: The chat includes the <code>displayText</code> &quot;I clicked this button&quot;</li>
  <li>Unexpected: the dev tools report a <code>400</code> code return from the <code>POST</code> to <code>https://emea.ng.msg.teams.microsoft.com/v1/agents/xxxxxx-xxxx-xxxx-xxxx-redacted/invoke</code>with the body <code>{&quot;errorCode&quot;:201,&quot;message&quot;:&quot;The resource URL is misformatted.&quot;}</code>
  <ul>
  <li>the tools show the request body <code>{clientMessageId: &quot;11862533962269802517&quot; conversation: {id: &quot;19:xxxxxxxxxxxxxxxxxxxredacted@thread.skype;messageid=1603494001316&quot;} imdisplayname: &quot;My Name&quot; messageType: &quot;RichText/Media_Card&quot; name: &quot;messageback&quot; serverMessageId: &quot;1603539459992&quot; text: &quot;text to bots&quot; value: {bfKey: &quot;bfVal&quot;, conflictKey: &quot;from value&quot;} bfKey: &quot;bfVal&quot; conflictKey: &quot;from value&quot;}</code></li>
  </ul>
  </li>
  </ul>
  <p>I have also seen this same problem with a HeroCard messageBack CardAction for my own hosted webhook service; but in trying to diagnose the problem I have reproduced with same fail with the Yeoman Generator for Microsoft Teams on my local dev environment.</p>
  <p>A picture to illustrate
  <a href="https://i.stack.imgur.com/UjH9f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UjH9f.png" alt="my dev environment where it is all going wrong" /></a></p>
  <p>Do <code>messageBack</code> Actions work with Outgoing Webhooks in MS Teams ?</p>