Search code examples
webhooksslack-apislack

Slack webhook html table


I have a HTML table that I am trying to post to Slack via webhook.

Is there a way to post the HTML table to Slack?

Here is the HTML code:

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Tables</title>
   </head>
   <body>
      <table border="1">
         <tr>
            <td>Row 1, Column 1</td>
            <td>Row 1, Column 2</td>
         </tr>
         <tr>
            <td>Row 2, Column 1</td>
            <td>Row 2, Column 2</td>
         </tr>
      </table>
   </body>
</html>

Solution

  • No, I don't believe there's any way to draw a table in a Slack message.

    Here are other available options for formatting Slack messages: https://api.slack.com/docs/formatting.