class SlidesApp method .getSlides()

SlidesApp is the Apps Script service.

.getSlides() is the method name you will see after a dot in your code.

What it does

Returns every slide in the presentation.

Why it's used

  • Loop every slide to find and replace old logos or dates.
  • Count slides or export titles to a tracking sheet.

Common errors

  • Forgetting parentheses on getSlides. Write SlidesApp.getSlides(), not SlidesApp.getSlides or getSlides by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SlidesApp.getSlides().
  • Adding spaces where they do not belong. Write SlidesApp.getSlides(), not SlidesApp .getSlides(), SlidesApp.getSlides (), or SlidesApp . getSlides().
  • Wrong capitalization. Use SlidesApp and getSlides, not slidesapp or getslides.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about SlidesApp.getSlides().

Browse the blog