Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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> 
like image 672
Punter Vicky Avatar asked May 06 '16 20:05

Punter Vicky


People also ask

Can I put a table in a Slack message?

The official answer is that Slack messages do not support tables.

Is it possible to post files to Slack using the incoming Webhook?

While you can use legacy incoming webhooks to post messages, they do not have access to interactive messages features. To make your messages interactive, you'll need to create an incoming webhook with a Slack app instead. Please note: it's not possible to send files via webhook.

Where can I find Slack Webhook URL?

In the "Slack App Directory", type "Incoming WebHooks" in the Search Bar and click on it.


1 Answers

I have opened a ticket to Slack support asking if Slack's Incoming Webhook message supports table of any form (HTML or Markdown).

The official answer is that Slack messages do not support tables.

They suggest to generate a table and post it as an image.

They also said that they will add it to their backlog.

like image 117
Sahar Menashe Avatar answered Sep 28 '22 08:09

Sahar Menashe