Actions12
Shift from Array
AI-generatedSummary
Remove and return the first element from an array stored in the ephemeral session store under a given key.
Inputs
- Scope — Select the ephemeral storage scope to target: execution (current run only), workflow (shared across executions), or global (shared across all workflows).
- Key (required) — The dot-notation key referencing the target array from which to shift the first element.
Output shape
a single JSON object containing success status, the key, the shifted value, the operation type, and the array length after modification
Throws an error if the targeted key does not exist or is not an array. The stored data is ephemeral and lost on n8n restart. Supports dot-notation keys.
Examples
Example 1: Shift first element from an array stored under 'user.items' in execution scope
Scope set to 'Execution', Key set to 'user.items'