# Tying Variables to Deployments

When building an application with [multiple profiles and deployments](profiles-and-deployment-settings), oftentimes they require different configuration settings or inputs based on the deployment. To help with this, variables are capable of being promoted to an App Setting variable, which allows variables to be configured and initialized at the profile level.  For example, if there are multiple deployments such as QA or PROD, App Setting variables can be used to initialize different IDs/URLs based on those deployments so the application can have different parameters set at the profile level. The benefit of using App Setting variables is that the variables are all surfaced in Settings, which makes managing the variables a lot easier across different deployments.

### How to promote a variable to an app setting

Any type of variables can be promoted to App Setting variables, whether they are on Web Pages, [Web Flows](../../studio/web-flows), or [Global Variables](../../data-and-integrations/standard-journey-data). To promote a variable to an App Setting variable right-click on the variable in the inspector. A dropdown will appear and provide the option to **Convert to Setting**.&#x20;

![organizing info](https://4185914948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSItjRhbHaLQ4ar3DUljt%2Fuploads%2Fgit-blob-20acd609e6ebe2d15cef972e129bbe93165d3b06%2Ftying-variables-to-deployments-v181-0.png?alt=media)

After converting the variable to an App Setting Variable, the variable can be accessed in **Settings**. To access the App Setting variable, go to Configuration variable and scroll down to App Settings. This is where the variable can be initialized for each profile. The value also accepts [Airscript](../../airscript/airscript-quick-start) as well.

![](https://4185914948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSItjRhbHaLQ4ar3DUljt%2Fuploads%2Fgit-blob-8a606ca6046076c1331cf0c9c8dc7d286d8bb4bd%2Ftying-variables-to-deployments-v181-1.png?alt=media)

### Using the App Setting Variable

The App Setting variable can be accessed in Web Flows Builder by using the '**profile**' namespace. For example, to access the App Setting variable in the previous example, use:

```javascript
profile.id
```
