const documentProperties = PropertiesService.getDocumentProperties();
let wedPageID = documentProperties.getProperty('WEDNESDAY_PAGEID');
//get all slides, iterate through them looking for the textbox that contains "Wednesday" (in this example)
async function getPageIDs() {
var ss = SlidesApp.getActivePresentation();
var slides = ss.getSlides();
slides.forEach( (slide, i) => {
var shapes = slide.getShapes();
shapes.forEach( (shape, j) => {
var shapeText = shape.getText().asString();
if ( shapeText === "Wednesday\n") {
documentProperties.setProperty('WEDNESDAY_PAGEID', slide.getObjectId())
}
})
})
}