Scenario triggered from webapp

Olcolin
Olcolin Partner, L2 Admin, Snowflake Advanced, Registered Posts: 7 Partner

Hello,

I would like to trigger a DSS scenario from a button click in a DSS webapp.
I have tried the following code in the python backend part of the webapp:

from dataiku.scenario import Scenario
scenario = Scenario()
scenario.run_scenario("MY_SCENARIO_KEY")

I get the following error message in my backend.log:

API call '/dip/api/tintercom/scenarios/run-step/' failed
java.lang.IllegalArgumentException: The API ticket used is not associated with a scenario run

Is there any way to trigger a new scenario from a DSS webapp?

Thanks in advance for your help
Kind regards

Best Answer

Answers

Setup Info
    Tags
      Help me…