MS Teams Integration
I was trying out MS Teams integration with Novu
i got the following error.
45 Replies
@jaydeep_dey03, you just advanced to level 2!
i had setup webhook url from my teams channel
i've hidden the url for security reasons
What does the right side say in the modals?
have you checked whats return on setCredentials?
@jaydeep_dey03 are you sure that you have an active integration in the environment from where you call trigger?
maybe you have a couple of chat integrations as active...
Just to give more context in order to check it what @paweltymczuk said you need to go to the
Integration Store
in the client and and connect the MS integration and make sure it is on Active toggle state .Yes, it was enabled
I'll share the Screenshots
I disabled discord and enabled MS teams, so only one chat service was enabled at a time
I do not believe there is a limitation to the Chat channel but it is a good test case to validate
@jaydeep_dey03 if the integration is enabled, then the credentials are not set properly and it might use the old one from the Discord. Make sure that the credentials are updated, if they are please send the screenshots from the
GET /subscribers/:subscriberId
endpoint or novu.subscribers.get(:subscriberId)
if you can.@jaydeep_dey03 thanks could you show what's inside the
channels
it's the most interesting part? 🙂i changed it to MS Teams in integration store
and made the request
still same error
you've got the 400 status code, and the message say's that you didn't provide in the body the
providerId
which should be in that case msteams
https://docs.novu.co/api/update-subscriber-credentials/ah okay
i've set MSTeams in channels
when i give providerId as an object
it shows
when i give it in this fashion, as mentioned in docs
i get this
which version of the
@novu/node
do you use? maybe you have to update it?
the latest is 0.9.0
the last example is the correct way@jaydeep_dey03, you just advanced to level 3!
i updated and got a success msg, but
this came from novu
when i hit the endpoint
https://api.novu.co/v1/subscribers/test_user
@paweltymczuk
@jaydeep_dey03 interesting, I'll debug that later and will let you know
Okay, thanks 🙏
@jaydeep_dey03 could you confirm that all the actions you do are on the same env and using the same API key? because the API keys are different for dev and prod...
I'm using express as backend at 5000 port and my reactjs project is running on 3000 port
In both env files i put the same API keys
Just to make sure, what you are saying by that is that all your operation (like credentials update, trigger, etc) were made by the same Novu API key?
Yes
I used one api key in both env files of front end and backend
Is that is what causing problem?
no @jaydeep_dey03 , I think you mis understood this.
We have two environments in Novu,
Development and Production. Both environment have different api keys.