Iconnek documentation
  • Quickstart
    • Introduction
    • Quick start guide
  • Configure
    • Connectors
    • Webhooks
    • Filter Lists
    • Conversion Tables
  • Using iconnek
    • Using the Iconnek Editor
      • Scenarios
      • Nodes
      • Data supervision
        • Dashboard
        • Terminal
        • Context Viewer
    • The Nodes
      • Comment
      • Exception
      • Function
      • Switch
      • Fan Out
      • Sequencer
      • Connector
      • Filter
      • Conversion
      • Mail
      • Catch
    • Using the Function node
    • Working with messages
    • Using global variables
    • Error handling
  • Deploying iconnek
    • Scheduling
    • Deployment
  • Ressources
    • How-to integrates
      • ConnectWise
      • Folks API V2
      • Genius ERP
      • Hector
      • Jovaco
      • Open AI
      • NetSuite
      • Microsoft Dynamics 365 Business Central
      • Zoho Books
      • Zoho CRM
  • Billing
    • Usage
  • PARTNERS
    • Partners
  • Security
    • Security
    • Service Level Agreement
  • Support
    • Contacting Support
Propulsé par GitBook
Sur cette page
  1. Using iconnek

Using global variables

Iconnek provides a global context that allows data to be shared across nodes within a flow.

Nodes can access and manipulate global variables using the scenario object. This object provides a namespace for storing and retrieving data that persists while a scenario is running.

Storing data context

Aside from the msg object, the function can also store data in the global variables.

More information about Global Variables within Iconnek is available here.

To set a value in a global variable:

vars.myGlobalVariable = "this is a value";

To get a value from global variables:

const myVariable = vars.myGlobalVariable

Scope: It's important to note that global variables are shared across all nodes within a scenario. Care should be taken to avoid naming conflicts and unintended side effects.

PrécédentWorking with messagesSuivantError handling

Dernière mise à jour il y a 2 mois