class PropertiesService method .setProperties()

PropertiesService is the Apps Script service.

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

What it does

Saves multiple key-value pairs at once.

Why it's used

  • Write several settings at once after onboarding.
  • Bulk-update config from a settings sheet.

Common errors

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

Explore

Related methods

Better Sheets tutorials

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