class PropertiesService method .getProperties()

PropertiesService is the Apps Script service.

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

What it does

Returns all stored key-value pairs.

Why it's used

  • Dump all settings for a backup or debug screen.
  • Migrate config to a new sheet or environment.

Common errors

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

Explore

Related methods

Better Sheets tutorials

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