-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Hi all,
I had an application for testing purposes that posts Actionable Messages in a specific Teams channel. This message contains a set of buttons for doing different stuff. Several months ago, 4 or 5 I think, everything was well with the implementation, some of these buttons made OpenUri actions some of them made HttpPOST actions. But, two weeks ago I checked this application and none of the HttpPOST worked anymore. I've searched for documentation on the web but found nothing until today. I reached to the document that advises about Security Recommendations on Actionable Messages an apply the solution telling to set the Authorization header to empty. It didn't work and don't know what else to do.
Let me briefly introduce the application:
- An Azure Function posts messages to a Teams Channel reading the information from an Azure Queue
- The Actionable Message in Teams has a button to call via HttpPOST another Azure Function.
The first one works fine and, every time a new item appears in the queue is processed and a new message appears in the channel. Let me share the Actionable Message code:
var simpleCard = {
"@context": "https://schema.org/extensions",
"@type": "MessageCard",
"correlationId": "6170847d-ec7d-42e2-acc9-733d44f6a4a1",
"summary": "Testing card",
"themeColor": "f97a02",
"title": "Card for testing purposes",
"text": "The purpose of this card is to show simple text and a set of buttons to check their functionality.",
"potentialAction": [{
"@type": "OpenUri",
"name": "OpenUri",
"targets": [{
"os": "default", "uri": "http://www.google.com"
}]
}, {
"@type": "HttpPOST",
"name": "HttpPOST",
"target": "https://issuesmgmtapp.azurewebsites.net/api/SetIssueType#parameters removed#",
"headers": [
{ "name": "Authorization", "value": null }
]
}]
};
But, when a user hits the button appears this error:
Sorry for being in Spanish, the whole error says "Error when sending. The requested action could not be completed. Try it again later."
I tested the second Azure Function in an isolated way and works fine so I don't know how to get the error from Teams and investigate a bit further.
-
Do you know how to solve my issue?
-
Is there anything that I'm doing wrong or something I missed?
-
Do you know how I can get log message information from Teams?
