Airapi User Guide
  • šŸ“™What is Airapi?
  • šŸ“˜Getting Started
    • Manage Environment
      • What is an Environment?
      • Add a New Environment
      • Update Environment
        • Reset Environment Cache
      • Delete Environment
      • Dashboard
      • Messages
      • Configurations
      • Endpoints
      • Applications
      • Documents
      • Agreements
      • Account Settings
    • Create Your Account
      • Verify Email
      • Forget Password
  • šŸ“—Management Portal
    • API Definition
      • Consent Management
      • Scope Management
  • šŸ“•Quota Management
    • Quota Management
    • API Base Quota
    • Application Base Quota
    • Domain Base Quota
  • šŸ“”UK Open Banking
    • Account Details
    • Regular Payments
  • šŸ“’TCMB Standard
    • Hata Kodları
  • šŸ““Advanced Features
    • App To App Authentication
    • mutual TLS
  • šŸ“–How to
    • How To Get a Client Credential Token?
    • How To Get an AppToApp Token?
    • How To Add Multiple Function Policy?
    • How To Add Data Mask Policy?
    • How To Create a New Tenant User?
    • How To Configure Developer Portal?
    • How To Modify Global Rate Limit?
    • How To Retire an API?
    • How To Reject a Payment Initiation?
    • How To Add a Global Variable?
    • How To Restrict Working Hours?
    • How To Track Gateway Error?
    • How To Export/Import Endpoints?
    • How To Reject Account Consent?
    • How To Exclude an Endpoint?
    • How To Define an Endpoint?
    • How To Define a Mock Policy?
    • How To Define a Rate Limit Policy?
    • How To Define a Mail Policy?
    • How To Transform a Header?
    • How To XML to JSON?
    • How To JSON to XML?
  • šŸ“™Release Notes
    • Versions
    • v2.1.80
    • v2.1.76
    • v2.1.72
    • v2.1.68
    • v2.1.64
    • v2.1.60
    • v2.1.56
    • v2.1.52
    • v2.1.44
    • v2.1.36
    • v2.1.20
    • v2.1.16
    • v2.0.96
    • v2.0.80
    • v2.0.72
    • v2.0.70
    • v2.0.66
    • v2.0.60
    • v2.0.55
    • v2.0.51
    • v2.0.50
    • v1.9.47
    • v1.9.46
    • v1.9.45
    • v1.9.44
    • v1.9.43
    • v1.9.42
    • v1.9.41
    • v1.9.40
    • v1.9.39
    • v1.9.38
    • v1.9.37
    • v1.9.3
    • v1.9.2
    • v1.9.1
    • v1.8.8
    • v1.8.7
    • v1.8.6
    • v1.8.5
    • v1.8.4
    • v1.8.3
    • v1.8.2
    • v1.8.1
    • v1.8.0
    • v1.7.9
    • v1.7.8
    • v1.7.7
    • v1.7.6
    • v1.7.5
    • v1.7.4
    • v1.7.3
    • v1.7.2
    • v1.7.1
    • v1.7.0
    • v1.6.9
    • v1.6.8
    • v1.6.7
    • v1.6.5
    • v1.6.2
    • v1.6.0
    • v1.5.8
    • v1.5.6
    • v1.5.4
    • v1.5
    • v1.4.6
    • v1.4.3
    • v1.4.0
    • v1.3.0
    • v1.2.1
    • v1.1.1
    • v0.8.6
  • āš™ļøPlanned Activities
Powered by GitBook
On this page
  • What is Global Variable?
  • How It Works?
  1. How to

How To Add a Global Variable?

PreviousHow To Reject a Payment Initiation?NextHow To Restrict Working Hours?

Last updated 2 years ago

What is Global Variable?

Global variables, as the name suggests, are variables that can be accessed globally or throughout the application. The global variable is a variable with global scope, it can be defined and accessed in the Management Portal. Once defined, they remain in memory for the duration of the application’s runtime.

A Global variable is useful when multiple functions are accessing the same data. It is ideally used for storing ā€œconstantsā€ as it helps you keep the consistency. The global variable belongs to every function in the program. A global variable can potentially be modified from the admin panel and any part of the application may depend on it.

How It Works?

  1. Tenant admin can declare global variables on Management Portal. The admin can access the global variables from all the functions or menus in ApiGo. Global Variables can be managed on the Admin Panel to prevent very long declarations and large allocations of duplicated data.

-> Configurations -> Global Variables -> Add New

  1. Tenant admin can define a global variable that has a key to call and essential value. The key will be defined in double curly brackets. The preview can be seen on the head of the content box. There is Save and Delete options to execute for every function in the ApiGo. For more global variables, tenant admin also can click on Add New.

  1. This means that at any point global variables can affect the program as a whole. For example, tenant admin can use the defined global variable for documentation. When the global variable’s key is added as a documented content, the value corresponding to the key can be monitored by developers.

  1. Tenant admin can use global variables when multiple functions need to access the data. The reflection of the changes for documentation can be viewed on the Developer Portal’s Documents page. A reference to multiple functions such as a document headline that needs to be accessed across the application can be given.

šŸ“–
Management Portal
apigo add global variable
apigo global variable view
apigo global variables
apigo variable document view