class PropertiesService method .getProperty()

PropertiesService is the Apps Script service.

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

What it does

Reads a single stored value by key.

Why it's used

  • Read one config value like webhook URL or API key.
  • Lightweight lookup without loading every property.

Common errors

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

Explore

Related methods

Better Sheets tutorials

Built a Cookie Clicker Clone in Google Sheets

Built a Cookie Clicker Clone in Google Sheets

I built a clone of Cookie Clicker, live on YouTube. Watch the full 1 hou...
Visicalc 2023 Design Walkthrough

Visicalc 2023 Design Walkthrough

Design walkthrough of VisiCalc 2023. Watch this if you'd like to see the...
Visicalc 2023 Quick Walkthrough

Visicalc 2023 Quick Walkthrough

This is a fun template I created for April 1st. Take a quick walk throug...