Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.18 KB

File metadata and controls

36 lines (25 loc) · 1.18 KB

PropertiesService Examples

The PropertiesService library is used to store and retrieve data that persists across script executions. You can manage properties at the script, user, or document level.

Examples

  1. Set and Get a Script Property:
    Store and retrieve a value that is global to the script.

  2. Set and Get a User Property:
    Store and retrieve user-specific data.

  3. Set and Get a Document Property:
    Store and retrieve data tied to a specific document.

  4. Delete a Property:
    Remove a stored property.

  5. Log All Properties:
    List all properties in a specific property store.

  6. Clear All Properties:
    Delete all properties in a property store.

  7. Use Properties for API Keys:
    Securely store API keys for external integrations.

Scripts