Skip to main content
Solved

How to create "Environment specific variables"?

  • September 15, 2023
  • 2 replies
  • 296 views

Hi,

 

We are using 2 workspaces to differentiate our staging and production environments. First of all, is this the right thing to do?

A pain-point of doing so is that when we want to copy an email template from Staging to Production, we have to manually update all the links. Is there a way to create a kind of environment variable that we could use in  Liquid like `{{ env.APP_URL }}` ?

It could also be useful for storing some API keys we use in the Fetch data step of our workflows.

Best answer by Mau

Hi there, 

I’m afraid, we don’t have a way to copy or reference environment variables at the moment. However, we do have a "copy workflow items" feature that allows you to copy an entire workflow or individual workflow items between campaigns and workspaces. 

 

You can learn more about it here: https://customer.io/docs/journeys/copying-workflow-items/

 

I hope that helps! 

 

Best,

Mau

View original
Did this topic help you find an answer to your question?

2 replies

Mau
  • 60 replies
  • Answer
  • September 18, 2023

Hi there, 

I’m afraid, we don’t have a way to copy or reference environment variables at the moment. However, we do have a "copy workflow items" feature that allows you to copy an entire workflow or individual workflow items between campaigns and workspaces. 

 

You can learn more about it here: https://customer.io/docs/journeys/copying-workflow-items/

 

I hope that helps! 

 

Best,

Mau


We are actually already using the “copy from workflow” feature. However, it doesn’t address the issue I mentioned because we still have to manually update all env specific variables and content.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings