Set and read a value
1
Set the variable
Add Set Project Variable.
Provide a Key and the Value to store. Setting an existing key
replaces its previous value.
2
Read the variable
In the same or another workflow, add Get Project
Variable and use the exact same key.
3
Handle the missing case
Set Default Value when the workflow needs a fallback. Without a default, a
missing variable returns
null.4
Inspect the result
Open Variables in the project dashboard to view the stored key, value,
and last update time.
Variable behavior
Keys are scoped to the project and matched exactly.
lastCustomerId and
LastCustomerId are different variables.
The Variables dashboard search helps locate similar keys, but it does not
change exact key matching inside workflows.
Append to a stored list
Append to List in Project Variables loads the current list, appends the supplied values in order, and stores the combined list. If the key does not exist, the action starts from[]. If the existing value
is not a list, the node reports Value is not a list. A value that can no
longer be decoded reports Variable is corrupted.
Inspect and clear variables
Open Variables from the project dashboard to:- Search keys.
- Preview simple values.
- Expand lists and objects in the data navigator.
- See when a value was last updated.
- Choose Clear Value to delete a variable.
null. The next Get
Project Variable returns its configured default, or null if no default was
set.
Example: remember the last processed item
- Start the workflow with a schedule trigger.
- Get the
last_processed_idproject variable. - Fetch and process items created after that ID.
- Set
last_processed_idto the newest successfully processed item.
Choose stable keys
Good keys state both the value and its purpose:Troubleshooting
Get Project Variable returns null
Get Project Variable returns null
Confirm the key matches exactly, including capitalization and whitespace,
and that the workflow is in the same project as the variable. Also check
whether someone cleared the value from the Variables page.
Append says Value is not a list
Append says Value is not a list
The key currently contains another type. Inspect it on the Variables page,
then clear it or use Set Project Variable to initialize it with a list.
Items disappear during parallel appends
Items disappear during parallel appends
Multiple runs are replacing the same list concurrently. Route updates through
one sequential workflow, avoid parallel execution for that key, or store each
run under a separate key.
I cannot edit a value from the dashboard
I cannot edit a value from the dashboard
The dashboard is for inspection and clearing. Add Set Project Variable
to a workflow to create or replace the value.