[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eVariables are integration elements that store and transfer data between tasks, triggers, and edges, and can be statically defined or dynamically passed at runtime.\u003c/p\u003e\n"],["\u003cp\u003eApplication Integration supports four types of variables: Integration, Task, Config, and System, each serving different purposes in managing data flow and configuration.\u003c/p\u003e\n"],["\u003cp\u003eIntegration variables are used for input, output, and temporary state storage throughout an integration's execution, and they support various data types like strings, integers, booleans, and JSON.\u003c/p\u003e\n"],["\u003cp\u003eConfig variables allow externalizing integration configurations for different environments, making it easy to adapt to QA, staging, or production without manual updates, and can be viewed/edited in the integration's Config variables pane.\u003c/p\u003e\n"],["\u003cp\u003eSystem Variables are automatically generated upon integration creation, which include data like error details (ErrorInfo), execution mode (ExecutionMode), and integration identifiers (ExecutionId, IntegrationName), as well as Project and Region information.\u003c/p\u003e\n"]]],[],null,["# Variables\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nVariables\n=========\n\nA *variable* is an integration element that holds and transports data between the tasks, triggers,\nand edges of an integration.\n\n- Variables can be statically defined at design time or dynamically passed to the integration at runtime.\n- Variables can reference other variables in an integration.\n- Variables can be globally accessible to all tasks, or locally accessible to a specific task.\n\nTypes of variables\n------------------\n\nApplication Integration supports four types of variables:\n\n- [Integration variables](#integration_var): Keep track of data throughout the course of an entire integration execution.\n- [Task variables](#task_var): Keep track of data for the duration of a single task.\n- [Config variables](#config_var): Store the configuration data of the integration.\n- [System variables](#system_var): Store the configuration data of the integration.\n\n### Integration variables\n\n\n*Integration variables* are similar to variables used in a programming language. Data\nin the variables can be read and written throughout the execution of the integration.\n\n\nIntegration variables can be used in the following ways:\n\n- Taken in as inputs to the integration (*input variables*).\n- Returned as outputs of the integration (*output variables*).\n- Used to hold temporary state during the execution of an integration.\n| **Note**: The variable roles listed above are not mutually exclusive. Any given variable can be an input variable, an output variable, both, or neither.\n\nThe value of a variables does not have to be statically defined in the integration. Variable values can\nbe passed into an integration through the use of a trigger. However, if a variable is statically defined\nin the integration, and the same variable is supplied dynamically with trigger, the dynamic value assignment\nwill overwrite the static assignment.\n\n#### Supported data types\n\n\nThe following data types are supported for integration variables:\n\n- String and String array\n- Integer and Integer array\n- Double and Double array\n- Boolean and Boolean array\n- JSON\n\n### Task variables\n\n*Task variables* are pre-defined auto-generated variables of a [task](/application-integration/docs/tasks). If a task has an output, all such\nouputs are available in a task variable. You cannot delete or edit a task variable.\nFor example, for the **Call REST Endpoint** task, the response body is stored in the\n`responseBody` variable.\n\n### Config variables\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\n*Config variables* enable you to externalize configuration for integration. With config variables, you can configure aspects of your integration such as connector details, authentication details, or URL endpoints that are based on the development environment (QA, staging, or production). You don't need to update your integration manually before uploading the integration to a new environment. Application Integration lets you enter values for the config variables when you publish the integration.\n\n\nTo [view and edit](#view_config_var) the config variables defined in your integration, click the variable_add **Integration config variable** in the **Variables** pane. To learn how to create config variables and use them, see the tutorial [Build CICD for your integration](/application-integration/docs/build-cicd).\n\n### System variables\n\n*System variables* are automatically generated when you create an integration. You can use these variables in your integration tasks and for [error handling](/application-integration/docs/error-handling-strategy). The integration contains the following system generated variables:\n\n- `ErrorInfo`: When your execution fails, you can access the error details with the `ErrorInfo` variable: \n\n ```\n {\n \"ErrorInfo\": {\n \"message\": String,\n \"code\": Number\n }\n }\n ```\n\n Currently, you can access the error messages by creating an [integration variable](#integration_var) named `ErrorMessage`. However, we recommend you to use the system-generated `ErrorInfo.message` variable to access error messages.\n- `ExecutionMode`: The [mode of execution](/application-integration/docs/triggers#execution-modes) based on the trigger. Valid values are **SYNC** and **ASYNC**.\n- `ExecutionId`: The execution ID of the integration.\n- `IntegrationName`: The name of the integration.\n- `Region`: The region of the integration.\n- `ProjectId`: The project ID that contains the integration.\n\nView variables\n--------------\n\nYou can use the **Variables** pane to create, edit, view, duplicate, and delete variables in your integration. The **Variables** pane also displays a count of the total variable references within the integration.\n\nTo view the **Variables** pane, click last_page (Toggle panel) in the designer navigation bar.\n\nThe following image shows a sample layout of the **Variables** pane:\n\n\n### View and edit config variables\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nTo view the config variables defined in your integration, click the variable_add **Integration config variable** in the **Variables** pane. This brings up the **Config variables** pane displaying all the config variables defined in your integration. You can simply click the **Value** field to edit the value of the config variable.\n\nThe following image shows a sample layout of the **Config variables** pane:\n\n\nCreate a variable\n-----------------\n\nTo create a variable, perform the following steps:\n\n1. In the integration editor navigation bar, click last_page (Toggle panel) to bring up the **Variables** pane.\n2. Click **+Create**.\n3. Do the following in the **Create Variable** pane:\n 1. **Name:** Enter the name of the variable.\n 2. **Variable Type:** Choose the type of the variable.\n\n 3. **Data Type:** Choose the data type of the variable. You can identity the data type of a variable using the icon next to the variable name.\n\n\n For information about the supported data types, see [Supported data types](#datatype).\n 4. **Default Value:** Enter the default value for the variable. This is an optional field.\n 5. **Schema:** Select the JSON schema for the variable.\n - **Infer from a sample JSON payload:** Generates a JSON schema from a sample JSON payload. The sample payload is discarded after the schema is generated. Only the generated schema will be saved.\n - **Enter a JSON schema:** Manually enter an entire JSON schema.\n - **Infer from the default value:** Generates a JSON schema using the provided default value.\n - **None:** No JSON schema.\n\n | **Note:** This field is displayed only for **JSON** data type variables.\n 6. **Mask the variable in logs ([preview](/products#product-launch-stages)):** Select this option to enable masking for the variable in the integration execution logs. To enable masking for the variable, you must enable masking variables for your integration and region. For information about how to enable masking for the integration and the region, see [Edit an integration](/application-integration/docs/view-integration-details) and [Edit regions](//application-integration/docs/enable-new-region#edit-region).\n\n For information about masking, see [Mask sensitive data in logs](/application-integration/docs/mask-sensitive-data-logs).\n4. Click **Create**.\n\nUse variables in integrations\n-----------------------------\n\nDuring the execution of an integration, run-time data is passed in as variables that are\ndeclared for the integration or task. Once execution begins, input data is converted into an in-memory object called\nan *Event*.\n\n\nAfter the Event object is created, an in-memory graph of tasks is built using the integration definition.\nIncoming variable values are passed to tasks based on your configuration.\nAs the integration executes, the tasks read and write data back into the Event object,to be\nused by subsequent tasks or to form the output data of the integration.\n\nVariable references\n-------------------\n\nThe tasks, triggers, and edges in an integration read and write to variables using **variable references** .\nA variable reference takes the form `$`\u003cvar translate=\"no\"\u003eparamKey\u003c/var\u003e`$` where \u003cvar translate=\"no\"\u003eparamKey\u003c/var\u003e is the name\nof the variable. For example, an edge conditional could look like this:\n`NOT ($isNameUnique$ = false OR $numAccounts$ \u003e 1)`\n\n\nIn this example, `isNameUnique` is a variable of data type **boolean** and\n`numAccounts` is a parameter of data type **integer**.\n\nQuotas and limits\n-----------------\n\nFor information about quotas and limits, see [Quotas and limits](/application-integration/docs/quotas).\n\nWhat's next\n-----------\n\n- Learn how to [build CI/CD for your integration](/application-integration/docs/build-cicd).\n- Learn how to [mask sensitive data in logs](/application-integration/docs/mask-sensitive-data-logs).\n- Add and configure a [Data Mapping task](/application-integration/docs/data-mapping-task)"]]