It seems some of required script functions are defined. Namely, "linked slides" and "linked charts in slides" can be updated via script. ("link table update via script" support is still missing)
You may use a script like the one below, to add two menu items to your google slides:
- Update Current Slide: If the slide itself is linked, that is updated. If there are any linked charts on the current slide, those are all updated.
- Update All Slides: Perform the updates on all slides.
Script is below:
function onOpen() {
var ui = SlidesApp.getUi();
ui.createMenu("MyMenu")
.addItem("Update All Slides", "updateAllSlides")
.addItem("Update Current Slide", "updateCurrentSlide")
.addToUi();
}
function updateSlide(slide) {
slide.refreshSlide();
var sheetCharts = slide.getSheetsCharts();
for (var i = 0; i < sheetCharts.length; i++) {
var sheetChart = sheetCharts[i];
sheetChart.refresh();
}
}
function updateAllSlides() {
var currentPresentation = SlidesApp.getActivePresentation();
var slides = currentPresentation.getSlides();
for (var i = 0; i < slides.length; i++) {
var slide = slides[i];
updateSlide(slide);
}
}
function updateCurrentSlide() {
var currentPresentation = SlidesApp.getActivePresentation();
var selection = currentPresentation.getSelection();
var currentPage = selection.getCurrentPage();
var currentSlide = currentPage.asSlide();
updateSlide(currentSlide);
}