# Adding a built-in context variable to the Repository

## About this task

You can save a built-in context variable defined in a Job or Route to a new context, or an existing context provided that the context variable does not already exist in the context.

## Procedure

1. In the Context view of a Job or Route, right-click the context variable you want to add to the Repository and select Add to repository context from the contextual menu to open the Repository Content dialog box.

   ![Contextual menu.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-add_builtin_to_repo1.png)
2. In the dialog box, do either of the following:
   * to add your context variable to a new context, select Create a new context and enter a name for the new context in the Context name field, and then click OK.
   * to add your context variable to an existing context, select the context and click OK.

   Information noteWarning: When adding a built-in context variable to an existing context, make sure that the variable does not already exist in the context.

   In this example, add the context variable password defined in a Job to a new context named DB\_login.

   ![Repository Content dialog box.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-add_builtin_to_repo2.png)

   The context variable is added to the Repository context of your choice, along with the defined built-in contexts, and it appears as a Repository-stored context variable in the Context view.

   ![Context view.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-add_builtin_to_repo3.png)