Insert table column in body after Outlook add-in

198 Views Asked by At

There is an Outlook add-in app.

When the button is clicked, the table is inserted in the body, and after the first insertion, the next button is clicked and I want to insert the table column.

Are there any related tutorials?

The method that uses the table for the body is using - office.js prependAsync method.

1

There are 1 best solutions below

7
AudioBubble On

Adding a column to an HTML table after inserting it into the body of a message is quite difficult since we don't provide any special APIs for manipulating individual HTML elements inserted into the body of a message.

One good approach is to build the table entirely in the add-in, and then use a button in the add-in to insert it into the body of the message. If you need more real estate to construct the table visually, you can use the Office dialog API to open a dialog window with your desired size.

We have a UserVoice page for feature requests. Please add a request there if you believe this should be a separate feature. We review and consider feature requests when going through our planning process.