Hi Brian,
you're right the Google Slides table methods are very different to the Google Docs table methods.
This Apps Script function shows how to programmatically add a row to a table in Google Slides:
- adds a new slide to the current presentation
- Adds a table to the slide
- Appends a row, then finally
- Puts some text into the first cell of the row
If you're familiar to programming Google Docs, Slides is similar that there are two programming interfaces: the Slides service (used in the sample below), and the Slides REST API. Both have different capabilities. You can do most things with the
Slides service, the unique capability the Rest API offers is the ability to get a thumbnail image of a Slide.
Happy to help more if you have any questions.
Regards,
Ed
function myFunction() {
var mySlide = SlidesApp.getActivePresentation().appendSlide()
var myTable = mySlide.insertTable(2,2)
var myRow = myTable.appendRow()
myRow.getCell(0).getText().setText("Hello World")
}