Unable to Post Message to Channel using Incoming Webhook

%3CLINGO-SUB%20id%3D%22lingo-sub-1435076%22%20slang%3D%22en-US%22%3EUnable%20to%20Post%20Message%20to%20Channel%20using%20Incoming%20Webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435076%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20use-case%20is%20to%20send%20messages%20to%20one%20of%20the%20channels%20of%20Microsoft%20Teams%20and%20in%20order%20to%20do%20so%20we%20are%20using%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fpypi.org%2Fproject%2Fpymsteams%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Epymsteams%3C%2FA%3E%26nbsp%3Bpython%20library%2Fpackage.%20From%20the%20example%20mentioned%20on%20it's%20documentation%2C%20we%20require%26nbsp%3B%3CSTRONG%3Ewebhook%20url%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20go%20ahead%20and%20test%2C%20I%20have%20setup%20account%20on%20Microsoft%20Teams%20and%20currently%20it%20has%20got%20two%20channels%20-%26nbsp%3B%3CEM%3EGeneral%3C%2FEM%3E%20(default%20created)%20and%26nbsp%3B%3CEM%3ENotifications%20Testing%3C%2FEM%3E%20(user%20created)%20under%26nbsp%3B%3CEM%3EBigLittle%20Innovations%3C%2FEM%3E%20team.%20Then%20I%20followed%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fadd-incoming-webhook%23add-an-incoming-webhook-to-a-teams-channel%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20(add-incoming-webhook)%3C%2FA%3E%26nbsp%3Blink%20to%20add%20incoming%20webhook%20but%20I%20wasn't%20able%20to%20find%26nbsp%3B%3CSTRONG%3EConnectors%3C%2FSTRONG%3E%20option%20under%20drop-down.%20However%2C%20I%20do%20find%26nbsp%3B%3CSTRONG%3EGet%20link%20to%20channel%3C%2FSTRONG%3E%20option%20from%20where%20I%20get%20url%20of%20the%20channel%20and%20used%20in%20the%20code%20to%20try%20out%20posting%20a%20message%20to%20respective%20channel.%20But%20the%20code%20was%20failing%20raising%20following%20exception%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3ETeamsWebhookException%3A%20The%20resource%20you%20are%20looking%20for%20has%20been%20removed%2C%20had%20its%20name%20changed%2C%20or%20is%20temporarily%20unavailable.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20the%20way%20to%20proceed%20further.%20Your%20help%20is%20very%20much%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EAvadoot%20Nachankar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1435076%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1435814%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Post%20Message%20to%20Channel%20using%20Incoming%20Webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435814%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F687257%22%20target%3D%22_blank%22%3E%40mnavadoot%3C%2FA%3E%26nbsp%3B%2C%20Please%20look%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1436064%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Post%20Message%20to%20Channel%20using%20Incoming%20Webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1436064%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20to%20add%2Fget%20incoming%20webhook%20url%20for%20a%20given%20%3CEM%3EChannel%3C%2FEM%3E%26nbsp%3Bbelonging%20to%20a%20free%20account%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20followed%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fadd-incoming-webhook%23add-an-incoming-webhook-to-a-teams-channel%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20link%3B%20but%20I%20was%20unable%20to%20find%26nbsp%3B%3CSTRONG%3EConnectors%3C%2FSTRONG%3E%20option%20under%20More%20Options%20for%20a%20given%20channel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1440190%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Post%20Message%20to%20Channel%20using%20Incoming%20Webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1440190%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheckout%20following%20link%20to%20setup%20incoming%20webhook%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%23setting-up-a-custom-incoming-webhook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%23setting-up-a-custom-incoming-webhook%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20what%20I%20would%20like%20to%20bring%20to%20your%20notice%20that%20I%20can't%20see%26nbsp%3B%3CSTRONG%3EConnectors%26nbsp%3B%3C%2FSTRONG%3Eoption%20in%20first%20place...%20so%20that%20I%20can%20add%20a%20custom%20incoming%20webhook%3B%20and%20then%20try%20sending%20messages%20using%20it!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20I%20would%20request%20you%20to%20create%20a%20free%20account%20and%20then%20go%20through%20the%20documentation%20link%20that%20you%20have%20shared%20with%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20not%20possible%20for%20you%2C%20then%20please%20get%20me%20someone%20who%20really%20can%20understand%20my%20problem%20and%20help%20accordingly!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EAvadoot%20Nachankar%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1443543%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Post%20Message%20to%20Channel%20using%20Incoming%20Webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1443543%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F687257%22%20target%3D%22_blank%22%3E%40mnavadoot%3C%2FA%3E%26nbsp%3B%2C%20Do%20you%20have%20permission%20enabled%20for%20connector%20creation%20in%20channel%20%3CSTRONG%3ESettings%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3D%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMember%20permissions%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3D%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAllow%20members%20to%20create%2C%20update%2C%20and%20remove%20connectors%3A%26nbsp%3B%3C%2FSTRONG%3Ecould%20you%20please%20look%20at%20%3A%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fadd-incoming-webhook%23add-an-incoming-webhook-to-a-teams-channel%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fadd-incoming-webhook%23add-an-incoming-webhook-to-a-teams-channel%20.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EGuest%20account%20don't%20support%20that%20please%20look%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fteam-owner-member-and-guest-capabilities-in-teams-d03fdf5b-1a6e-48e4-8e07-b13e1350ec7b%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fteam-owner-member-and-guest-capabilities-in-teams-d03fdf5b-1a6e-48e4-8e07-b13e1350ec7b%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

Our use-case is to send messages to one of the channels of Microsoft Teams and in order to do so we are using pymsteams python library/package. From the example mentioned on it's documentation, we require webhook url.

 

To go ahead and test, I have setup account on Microsoft Teams and currently it has got two channels - General (default created) and Notifications Testing (user created) under BigLittle Innovations team. Then I followed this (add-incoming-webhook) link to add incoming webhook but I wasn't able to find Connectors option under drop-down. However, I do find Get link to channel option from where I get url of the channel and used in the code to try out posting a message to respective channel. But the code was failing raising following exception:

 

 

TeamsWebhookException: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

 

 

 

Please let me know the way to proceed further. Your help is very much appreciated.

 

Thanks.

 

Regards,

Avadoot Nachankar

4 Replies

@Trinetra-MSFT 

 

How to add/get incoming webhook url for a given Channel belonging to a free account? 

I have followed this link; but I was unable to find Connectors option under More Options for a given channel.

@Trinetra-MSFT 

 

Checkout following link to setup incoming webhook:
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-u...

 

This is what I would like to bring to your notice that I can't see Connectors option in first place... so that I can add a custom incoming webhook; and then try sending messages using it!

 

Please I would request you to create a free account and then go through the documentation link that you have shared with me.

 

If not possible for you, then please get me someone who really can understand my problem and help accordingly!

 

Thank you.

 

Regards,

Avadoot Nachankar

 

@mnavadoot , Do you have permission enabled for connector creation in channel Settings => Member permissions => Allow members to create, update, and remove connectors: could you please look at :https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming...

Guest account don't support that please look at https://support.microsoft.com/en-us/office/team-owner-member-and-guest-capabilities-in-teams-d03fdf5...