Session Store (Ephemeral)

Store and retrieve data from in-memory session during a workflow execution

Check Exists

AI-generated

Summary

Check if a specific key exists in an in-memory ephemeral session store at a chosen scope (execution, workflow, or global).

Inputs

  • Scope — Select the storage scope: execution (current run only), workflow (shared across executions in-memory), or global (shared across n8n instance in-memory). Data is ephemeral and cleared on restart.
  • Key (required) — The dot-notation key string to check for existence in the session store.

Output shape

A list containing a single item with a JSON object indicating the queried key and a boolean 'exists' field.

The output JSON object includes { key: string, exists: boolean }. The check respects the selected scope storage which is ephemeral and resets on workflow or system restart.

Examples

Example 1: Check if 'user.profile.name' exists in current execution session

Scope = Execution, Key = user.profile.name, Operation = Check Exists

Discussion