How to call a previous step of the scenario in a Python custom step
![Yasmine](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar15.png)
Yasmine
Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 14 ✭✭✭
Hello,
I need to call a previous step of the scenario in a Python custom step, is it possible please?
I'm using version 9.01 of dataiku.
Thanks in advance,
Best regards,
Yasmine
Operating system used: Python and scenarios
Tagged:
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,211 Dataiker
Hi @Yasmine
,You can run a step in a scenario but not directly by referencing the scenario name/step name.
You create a step definition as suggested here:
Another approach is to split this into multiple scenarios and call the scenario from your python code instead.
https://doc.dataiku.com/dss/latest/python-api/scenarios.html#run-a-scenario
Thanks,