Skip to main content
Feedback

Using global variables in components

info

Boomi's Global Variables feature is rolling out in waves to eligible accounts. You can request access to get the latest functionality.

To use a global variable in a component, enter $V{VARIABLE_NAME} in the field's text box.

For example, you want to use global variables for the Client ID and Client Secret fields in a Shopify connection in the Production environment.

  1. Go to Manage > Global Variables and click Create Variable.

  2. You don't need to encrypt the Client ID, so enter the following information:

    • Name - SHOPIFY_ID
    • Description - Shopify Client ID
    • Initial Value - Enter the Client ID for your Shopify app. You can find this information in the Client credentials section in Shopify.
  3. Click Create.

  4. Create another variable for the Client Secret:

    • Encrypt Global Variable - Because this is the Client Secret, it's more secure to encrypt this variable value, so check the box to encrypt.
    • Name - SHOPIFY_SECRET
    • Description - Shopify Client Secret
  5. Click Create.

  6. Click the Variable Assignments tab and select the Production environment from the Environments drop-down.

  7. Click the {SHOPIFY_SECRET} variable that you created in step 4.

  8. In the variable pane, click the Encrypted button to open the value field. Enter the Client Secret for your Shopify app. You can find this information in the Client credentials section in Shopify. Then click Apply.

  9. Click Save to save the variable value.

  10. From the Build page, create a new Shopify connection. On the OAuth 2.0 tab, enter the following information for the Client ID and Client Secret fields:

    • Client ID: $V{SHOPIFY_ID}
    • Client Secret: $V{SHOPIFY_SECRET}. You must click Click to Set to enter the value.
note

If you want to test the connection after configuring it, you must temporarily enter the literal value for the Client ID and Client Secret. Refer to Global Variables for more information about current limitations.