'Inserting images into slides from a URL in sheets
I am setting up a deck to automatically create a new slide with each row in a spreadsheet.
Each row has a different picture attached to it, which has the URL in a column on the source spreadsheet, and I would like this image to be inserted into the slide, alongside some text.
The code I am using to populate the text fields is below - this works fine:
// Insert a new slide by duplicating the master slide.
let slide = masterSlide.duplicate();
// Populate data in the slide that was created
slide.replaceAllText("{{ItemName}}", column[0]);
slide.replaceAllText("{{SKU}}", column[1]);
slide.replaceAllText("{{Price}}", column[2]);
slide.replaceAllText("{{Count}}", column[3]);
slide.replaceAllText("{{Composition}}", column[4]);
slide.replaceAllText("{{Analytics}}", column[5]);
slide.replaceAllText("{{Description}}", column[6]);
**slide.insertImage(???);**
I would like to be able to add the image URL as a new column to the sheet and have the script pull this in and convert it into an image on the slide
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
