Properties Service
Properties
This service allows scripts to store strings as key-value pairs scoped to
one script, one user of a script, or one document in which an
editor add-on is used.
For more information about when to use each type of property, see the
guide to the Properties service.
Classes
Name | Brief description |
Properties | The properties object acts as the interface to access user, document, or script properties. |
PropertiesService | Allows scripts to store simple data in key-value pairs scoped to one script, one user of a
script, or one document in which an add-on is used. |
ScriptProperties
| Script Properties are key-value pairs stored by a script in a persistent store. |
UserProperties
| User Properties are key-value pairs unique to a user. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["The Properties Service allows scripts to store data as key-value pairs, with different scopes available: script, user, or document."],["This service offers classes for managing properties like Properties, PropertiesService, ScriptProperties, and UserProperties, each with its own specific purpose."],["Properties can be manipulated with methods such as deleting, retrieving by key or in bulk, and setting new values."],["Different property stores can be accessed, including document-specific, script-wide, or user-specific stores, through the PropertiesService class."]]],[]]