cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4956
Views
0
Helpful
8
Replies

Sending tables in webex

khanali198361
Level 1
Level 1

Hi developers,
I'm trying to send tables to webex using markdown using the messaging API but the tables received are completely out of order. 
Is there a way to send tables to webex without disturbing the formatting ?

khanali198361_0-1664202307621.png

 

8 Replies 8

Since markdown tables aren't supported, I've used basic ascii tables generated from https://ozh.github.io/ascii-tables/ and surrounded by triple backticks to get it to render properly

AdamWeeksWebexEvangelism_0-1666282840691.png

 

Hi Adam

How can we add this ascii tables into webex, Can you plesae give brief on this

BR

Sai kiran

A markdown code block (surrounded by triple backticks) should render in a fixed-width font, which will help align characters in an ASCII "table".  Note that there is no actual table functionality, you will just need to provide ASCII chracters that result in something that looks like a table, as if you entered it by hand, e.g.:

```
+-----+-----+
| Foo | Bar |
+-----+-----|
| ABC | 123 |
+-----+-----+
```

 An ASCII table generating library might be helpful, e.g. for Python: https://beautifultable.readthedocs.io/en/latest/

dtibbe
VIP
VIP

Tables are not supported in the markup subset used by Webex.

You may try sending them using html tags (untested, just as an idea), but that is not officially supported

I tried sending through HTML tags but it just sends the code to webex and doesn't format it to table. Can you tell me how I can send using HTML tags ? Maybe an example ? 

 

Have you put it into the markdown field?

See this example for a blockquote: https://community.cisco.com/t5/webex-meetings-and-webex-app/blockquote-color-vertical-bar-help/m-p/4627226#M8871

The webex messaging API is so bad doesn't even format HTML tables properly. 
Im passing the following HTML. 

"<table> <thead> <tr> <th>Header</th> <th>Header</th> <th>Header</th> </tr> </thead> <tbody> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </tbody> </table>"

khanali198361_1-1664276851833.png

 

khanali198361_0-1664276803667.png

 

As embedded HTML is not documented/supported for message formatting, it's perhaps unsuprising (if disappointing) that it doesn't work well
Perhaps using an adaptive card (which has a lot more layout/formatting options) would be a useful workaround.