question

CameronNokes-7498 avatar image
0 Votes"
CameronNokes-7498 asked HunaidHanfee-MSFT edited

Teams is not displaying my unfurl response

I have a Teams integration with link unfurling set up. I have the messaging endpoint pointed to a public ngrok URL and ngrok proxying a local node.js server that returns the example payload Microsoft has in it's documentation.

This is my endpoint (express.js):

 app.post('/bot-test', (req, res) => {
   res.send({
     "composeExtension": {
       "type": "result",
       "attachmentLayout": "list",
       "attachments": [
         {
           "contentType": "application/vnd.microsoft.teams.card.o365connector",
           "content": {
             "sections": [
               {
                 "activityTitle": "[85069]: Create a cool app",
                 "activityImage": "https://placekitten.com/200/200"
               },
               {
                 "title": "Details",
                 "facts": [
                   {
                     "name": "Assigned to:",
                     "value": "[Larry Brown](mailto:larryb@example.com)"
                   },
                   {
                     "name": "State:",
                     "value": "Active"
                   }
                 ]
               }
             ]
           }
         }
       ]
     }
   });
 });

When I post a URL in a message in Teams, I see it POST to that endpoint and it responds without errors, but nothing shows up in Teams. What's going wrong? I can't find any logs on Microsoft's side either. I would expect that Teams renders a card with the response payload.

office-teams-windows-itprooffice-teams-app-devmicrosoft-graph-teamwork
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Since your questions are more related with the development side, I will add the dev tag so you could get a better support:)

Best regards,
Lou

1 Vote 1 ·

We are tracking this issue on StackOverflow. Please have a look at the https://stackoverflow.com/questions/70369052/teams-is-not-displaying-my-unfurl-response.
We are closing this question from our end for better tracking and providing solution. We will respond on StackOverflow for further discussion.

Thanks

0 Votes 0 ·

0 Answers