---
schema_version: "1"
id: 98cbdd3ce98bdeb6fc1c8d6bc537a58cc61f18270ad918476dbca725af63a0b9
title: set()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-dollara-set.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-dollara-set.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: feb267970a057475b802db090b62dccfeb804ecaa86add6bdeb73f4270faa7b0
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# set()

Sets a value on the specified global value provider using property syntax.

## Signature

`set (String key, Object value)`

## Parameters

**_key_:** Type: `String`. The data key to change on the global value provider.

**_value_:** Type: `Object`. The value to set for the key. If the global value provider doesn’t implement `set()`, this method throws an exception.

