Data Write Global
This function block stores incoming data into a global data storage that is accessible across the whole scenario. Use it to share values, images or structured data between different parts of your system or to create a simple global state.
π₯ Inputs
Generic Input socket that accepts any data to be written into the global storage.
π€ Outputs
This function block does not provide outputs.
πΉοΈ Controls
Data Key β Text field where you type the key name used to store the data in the global storage. The control provides suggestions based on existing global keys so you can reuse or overwrite them.
βοΈ Running mechanism
When the block runs, it reads the value provided to the
Genericinput and the text inData Key.If an input value is present, the block writes that value into the global storage under the chosen
Data Key.The global storage is shared across the whole scenario. Because of this global visibility, using this block can create implicit loops or cross-dependencies; the block does not guarantee strict data-flow ordering.
π― Features
Persistent, scenario-wide data sharing for values, images or complex data.
Key autocomplete helps avoid typing errors and encourages reusing keys.
Simple way to pass information between distant parts of a flow without direct connections.
π Usage instructions
Provide the value you want to store to the
Genericinput socket.Type or select a name in the
Data Keycontrol to identify the stored item.Run the scenario. The value will be available to any other block that reads from the global storage using the same key.
π‘ Tips and Tricks
Retrieve the stored value later using the
Data Read Globalblock.For short-lived or loop-local sharing, prefer
Data Write LocalandData Read Localinstead of global storage.To avoid writing empty values, combine with
Is NoneorReplace Nonebefore writing.Add timestamps by combining with
Date-TimeorDate-Time Listwhen you need logged values.For logging or export workflows, pair with
Data to JSONandCSV Exportto serialize and save data.For image data, consider using
Image LoggerorImage Writein addition to global storage to persist images to disk.Use
Logic Inputto gate when the write happens (write only on a trigger) and useDebug Inputto inspect values during development.If you want to freeze a value that should not update every run, use
Data Memoryto control when updates happen.
β οΈ Cautions
Global storage can create implicit dependencies. Avoid overusing global writes for frequently updated data in performance-sensitive or time-critical flows.
Naming collisions may occur if multiple blocks use the same key unintentionally. Use consistent, descriptive keys and rely on autocomplete to reduce mistakes.
Last updated