Teams webhook - Send emojis in notifications











up vote
1
down vote

favorite
1












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.










share|improve this question




























    up vote
    1
    down vote

    favorite
    1












    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.










    share|improve this question


























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      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.










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 at 23:58

























      asked Nov 19 at 23:30









      stringy05

      2,4511316




      2,4511316
























          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.






          share|improve this answer





















          • This works with the following payload { "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"} thanks!
            – stringy05
            yesterday











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          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

























          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.






          share|improve this answer





















          • This works with the following payload { "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"} thanks!
            – stringy05
            yesterday















          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.






          share|improve this answer





















          • This works with the following payload { "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"} thanks!
            – stringy05
            yesterday













          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          Wajeed - MSFT

          85829




          85829












          • 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




          This works with the following payload { "Text": "emoji tester: 👊 ", "TextFormat":"markdown", "Title" : "emoji notification"} thanks!
          – stringy05
          yesterday


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          Refactoring coordinates for Minecraft Pi buildings written in Python