SFU.getStorageItem()
- Last UpdatedNov 17, 2025
- 1 minute read
Use getStorageItem() method to get value for the specified key in the web storage.
Note: Forms utilize JavaScript's localStorage and sessionStorage to store key-value pairs in the user's browser. Most major browsers (Chrome, Firefox, Safari, Edge) typically enforce a storage limit of approximately 5 MB per origin for both storage types. Exceeding this limit may result in errors when setting items.
Syntax
aRetVal = SFU.getStorageItem(key);
Parameters
|
Parameter |
Description |
|---|---|
|
key |
Key in the web storage for which value is required. |
Return Value
This method returns an array.
Example
// Get value for the specified key in the web storage.
var workItems = SFU.getStorageItem("WorkItemData");