Teams webhook - Send emojis in notifications
up vote
1
down vote
favorite
Using slack webhooks I can send an emoji using the shortcode in the message:
curl -X POST --data-urlencode "payload={"channel": "#my_notification",
"username": "webhookbot", "text": ":punch: commit blah deployed ok",
"icon_emoji": ":ghost:"}" https://hooks.slack.com/services/SOMELONGSTRING
Now we have moved to MS Teams, so I'm setting up the same thing using the incoming webhook connector, however it seems to do the text formatting on the client side pre-request rather than like slack which does it on client side post request rendering. So this webhook:
curl https://outlook.office.com/webhook/guid-guid-guid/IncomingWebhook/guid/guid
--header 'Content-Type: application/json'
--data "{ "Text": ":punch: commit blah deployed ok", "Title" : "api deployment"}"
shows up with the literal :punch:
instead of a cool 👊 emoji? I've tried setting the TextFormat = markdown but that didn't make eny difference.
How can I get emojis into my teams notifications (using strings) and prove to my colleagues that teams doesn't suck?
I should point out I know I can use the emoji icon on my Mac, however the notification is sent from jenkins and I dont really want to muck around with the shell encoding etc to make that work.
webhooks microsoft-teams
add a comment |
up vote
1
down vote
favorite
Using slack webhooks I can send an emoji using the shortcode in the message:
curl -X POST --data-urlencode "payload={"channel": "#my_notification",
"username": "webhookbot", "text": ":punch: commit blah deployed ok",
"icon_emoji": ":ghost:"}" https://hooks.slack.com/services/SOMELONGSTRING
Now we have moved to MS Teams, so I'm setting up the same thing using the incoming webhook connector, however it seems to do the text formatting on the client side pre-request rather than like slack which does it on client side post request rendering. So this webhook:
curl https://outlook.office.com/webhook/guid-guid-guid/IncomingWebhook/guid/guid
--header 'Content-Type: application/json'
--data "{ "Text": ":punch: commit blah deployed ok", "Title" : "api deployment"}"
shows up with the literal :punch:
instead of a cool 👊 emoji? I've tried setting the TextFormat = markdown but that didn't make eny difference.
How can I get emojis into my teams notifications (using strings) and prove to my colleagues that teams doesn't suck?
I should point out I know I can use the emoji icon on my Mac, however the notification is sent from jenkins and I dont really want to muck around with the shell encoding etc to make that work.
webhooks microsoft-teams
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Using slack webhooks I can send an emoji using the shortcode in the message:
curl -X POST --data-urlencode "payload={"channel": "#my_notification",
"username": "webhookbot", "text": ":punch: commit blah deployed ok",
"icon_emoji": ":ghost:"}" https://hooks.slack.com/services/SOMELONGSTRING
Now we have moved to MS Teams, so I'm setting up the same thing using the incoming webhook connector, however it seems to do the text formatting on the client side pre-request rather than like slack which does it on client side post request rendering. So this webhook:
curl https://outlook.office.com/webhook/guid-guid-guid/IncomingWebhook/guid/guid
--header 'Content-Type: application/json'
--data "{ "Text": ":punch: commit blah deployed ok", "Title" : "api deployment"}"
shows up with the literal :punch:
instead of a cool 👊 emoji? I've tried setting the TextFormat = markdown but that didn't make eny difference.
How can I get emojis into my teams notifications (using strings) and prove to my colleagues that teams doesn't suck?
I should point out I know I can use the emoji icon on my Mac, however the notification is sent from jenkins and I dont really want to muck around with the shell encoding etc to make that work.
webhooks microsoft-teams
Using slack webhooks I can send an emoji using the shortcode in the message:
curl -X POST --data-urlencode "payload={"channel": "#my_notification",
"username": "webhookbot", "text": ":punch: commit blah deployed ok",
"icon_emoji": ":ghost:"}" https://hooks.slack.com/services/SOMELONGSTRING
Now we have moved to MS Teams, so I'm setting up the same thing using the incoming webhook connector, however it seems to do the text formatting on the client side pre-request rather than like slack which does it on client side post request rendering. So this webhook:
curl https://outlook.office.com/webhook/guid-guid-guid/IncomingWebhook/guid/guid
--header 'Content-Type: application/json'
--data "{ "Text": ":punch: commit blah deployed ok", "Title" : "api deployment"}"
shows up with the literal :punch:
instead of a cool 👊 emoji? I've tried setting the TextFormat = markdown but that didn't make eny difference.
How can I get emojis into my teams notifications (using strings) and prove to my colleagues that teams doesn't suck?
I should point out I know I can use the emoji icon on my Mac, however the notification is sent from jenkins and I dont really want to muck around with the shell encoding etc to make that work.
webhooks microsoft-teams
webhooks microsoft-teams
edited Nov 19 at 23:58
asked Nov 19 at 23:30
stringy05
2,4511316
2,4511316
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
You can use the hex codes(& #x1F642;) for sending emoji in Microsoft Teams. You can get these he are few which you can try: https://apps.timwhitlock.info/emoji/tables/unicode
We have backlog item to simplify sending emoji programmatically.
This works with the following payload{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!
– stringy05
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
You can use the hex codes(& #x1F642;) for sending emoji in Microsoft Teams. You can get these he are few which you can try: https://apps.timwhitlock.info/emoji/tables/unicode
We have backlog item to simplify sending emoji programmatically.
This works with the following payload{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!
– stringy05
yesterday
add a comment |
up vote
0
down vote
accepted
You can use the hex codes(& #x1F642;) for sending emoji in Microsoft Teams. You can get these he are few which you can try: https://apps.timwhitlock.info/emoji/tables/unicode
We have backlog item to simplify sending emoji programmatically.
This works with the following payload{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!
– stringy05
yesterday
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
You can use the hex codes(& #x1F642;) for sending emoji in Microsoft Teams. You can get these he are few which you can try: https://apps.timwhitlock.info/emoji/tables/unicode
We have backlog item to simplify sending emoji programmatically.
You can use the hex codes(& #x1F642;) for sending emoji in Microsoft Teams. You can get these he are few which you can try: https://apps.timwhitlock.info/emoji/tables/unicode
We have backlog item to simplify sending emoji programmatically.
answered yesterday
Wajeed - MSFT
85829
85829
This works with the following payload{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!
– stringy05
yesterday
add a comment |
This works with the following payload{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!
– stringy05
yesterday
This works with the following payload
{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!– stringy05
yesterday
This works with the following payload
{ "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"}
thanks!– stringy05
yesterday
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384141%2fteams-webhook-send-emojis-in-notifications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown