Access Scenario Variables via another Scenario

sagar_dubey
Level 1
Access Scenario Variables via another Scenario

Hi,

We have multiple scenarios for different pipelines and it has Variable defined for that particular Scenario. I have another Scenario that needs to access the variables for a particular scenario and then process the further steps.

Is there any way to do it?

Example-

Scenario 1 : pipeline1

Variables : table_name="abc"

Scenario 2:pipeline2

Variables : table_name="xyz"

 

Now, Scenario 3 should be updating the variable "table_name" based on for which pipeline it needs to process automatically.

0 Kudos
1 Reply
AlexT
Dataiker

Hi @sagar_dubey,

Scenario variables are only available within the same scenario.

For your case, you would want to use project variables instead like scenario1_table_name, and then read this from another scenario.

You can use it with a "Define project variables" step in the scenario or use the python step in your scenario.

https://knowledge.dataiku.com/latest/courses/o16n/variables/variables101/variables101-for-coders.htm...

 

Thanks, 

0 Kudos