N
Novu•2y ago
dr.really

Unable to test MS Teams

When attempting to test the workflow for an MS Teams integration I get the attached error message. "Subscriber does not have a configured channel". Am I doing something wrong? Apologies, new to the Novu platform and the docs didn't say anything about a configured channel.
14 Replies
empe
empe•2y ago
@Moderator @Support please help out here
Paweł T.
Paweł T.•2y ago
hi @dr.really 👋 have you checked these steps: https://docs.novu.co/channels/chat/msteams/#how-to-get-a-ms-teams-webhook-url ?
MS Teams | Novu
MS Teams does not need any API Key or client ID to push messages in it. All it needs is the webhook url
Paweł T.
Paweł T.•2y ago
Create an Incoming Webhook - Teams
Create Incoming Webhook to Teams app and post external requests to Teams. Remove Incoming Webhook. Sample code(C#,Node.js) to send card using Incoming Webhook.
dr.really
dr.really•2y ago
heyo! i have not tested it via code - I was testing it via the novu ui, is it not able to be tested via that ui?
Paweł T.
Paweł T.•2y ago
It should be possible, but you have to provide the webhookUrl in the payload I guess. But I haven't tried it before. @davidsouthmountain is that correct what I'm suggesting?
DavidSouthmountain
DavidSouthmountain•2y ago
That sounds correct
dr.really
dr.really•2y ago
That is how I tried it and then got the above error message 😦
Novu_Bot
Novu_Bot•2y ago
@dr.really, you just advanced to level 1!
dr.really
dr.really•2y ago
I'm not entirely sure what Subscriber does not have a configured channel means
Paweł T.
Paweł T.•2y ago
it means that the webhookUrl is not set or the subscriber doesn't have any channels it seems like you should PUT /subscribers/:subscriberId/credentials before with the
{
"providerId": "msteams",
"credentials": {
"webhookUrl": "..."
}
}
{
"providerId": "msteams",
"credentials": {
"webhookUrl": "..."
}
}
it probably should work even without webhookUrl in the example above, just an empty object but if you will provide it then you won't need to include it in the UI
dr.really
dr.really•2y ago
would i put that in the payload option or the overrides option on the workflow testing modal? apologies for the ping @Support just double checking 🙂
Paweł T.
Paweł T.•2y ago
What you need to do is to update the subscriber credentials for the MS Teams integration. Unfortunately I'm not aware if you can do this from the UI. So you have two options: - using the node library - or calling the API endpoint with the curl or Postman If you decide to go with the first option here is a link to the documentation how you can do that: https://docs.novu.co/channels/chat/msteams For the second option take a look here: https://docs.novu.co/api/update-subscriber-credentials/ Then after you do this, you will be able to test the workflow from the UI, and you won't need to include the webhookUrl there.
dr.really
dr.really•2y ago
ah, that makes sense. I was under the assumption you could do it from the UI. That being said, I might take a gander at the source and add the ability once I become more acquainted with the software 🙂 Thank you for your help!
Paweł T.
Paweł T.•2y ago
sure, no problem! 🙌