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
@Moderator @Support please help out here
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
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.
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?
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?That sounds correct
That is how I tried it and then got the above error message 😦
@dr.really, you just advanced to level 1!
I'm not entirely sure what
Subscriber does not have a configured channel
meansit 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
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 UIwould i put that in the
payload
option or the overrides
option on the workflow testing modal?
apologies for the ping @Support just double checking 🙂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.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!
sure, no problem! 🙌