Outgoing webhook triggering multiple times, how to prevent?

Mike Oldfield 11 Reputation points
2023-10-24T14:27:14.59+00:00

Hello,

I have a Teams channel where I have configured an outgoing webhook with a name, "Out of Hours Bot". This triggers a webhook on an Azure function to provide some forms & carry out admin actions.

To use it, our end users will @ mention the "Out of Hours Bot" in a message, which triggers the Azure function.

Historically, this has been working great, but since the roll out of the "new" Teams client, I have been noticing that the function responds 4x times every time someone tag the bot. I have noticed that when this happens, when you hover over the @ mention in the message, each word is underlined individually, so it looks like instead of it tagging "Out of Hours Bot", it's actually tagging "Out", "of", "Hours" and "Bot" which are then triggering the webhook per word.

If I try to do this in the classic Teams client, it tags "Out of Hours Bot" as a whole & receives a single response from the function.

I have noticed that the interface is slightly different in the "new" client when it comes to configuring the outgoing webhooks, so I have attempted to re-create the webhook using the "new" client, however this has made no difference.

How can I get the "new" Teams client to @ mention the bot correctly in a single tag, rather than it splitting the tag into multiples?

As a workaround, I'm considering rename it it to something like "OOHBot" so it is a single word which would get around the issue, however this is not preferable for a readability perspective.

Any suggestions welcome!

Thank you

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,650 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,078 questions
{count} vote