Forum Discussion
NadirRiyani
Mar 26, 2020Brass Contributor
MS Teams connector middle layer between Payload sender and Receiver (msteams channel)
Hello Support
I have created one custom connector (using MS Javascript SDK). This connector will give me one Incoming Webhook URL. And I've configured the Incoming URL to my external server. Now Server has start sending events to my Channel. This flow working fine. The server sends events to MS Teams Channel and Channel display the Message card (payload).
Here I need control in code. I need to modify the Payload (Message card) sent by the server. So
When Server sends the Message to Channel It should come to my C# application and I want to change the payload based on some condition and then the reply back to the channel.
In Conclusion, I need the Middle layer in between payload sender and receiver in the connector flow.
One similar conversaion link I found : https://github.com/microsoft/botframework-sdk/issues/5387
Ref link for Custom Connector:
- Wajeed-MSFT
Microsoft
NadirRiyani - Could you please take a look at Change Notification Subscription. Please take a look at Change notifications for Microsoft Teams messages blog.
Let me know if that helps.
- NadirRiyaniBrass Contributor
Wajeed-MSFT Thanks for your quick response.
It does not look direct solution to the issue which I have posted. It looks like the subscription-based model. Do you know any NuGet package or Any direct Event available whereas the developer take some action before message post to Teams via Connector.? Similar like one every Bot command and OnTurnAsync event raised.
And It looks API is in the Beta version too.
- Wajeed-MSFT
Microsoft
NadirRiyani - In that case, you could create an Azure Function which receives the data first and then posts to respective Incoming Webhook.
See if this example helps: https://visualstudiomagazine.com/articles/2017/04/01/implementing-webhooks-azure-functions.aspx