Skip to main content
February 18, 2025
Solved

Passing scenario as parameter to copy step

  • February 18, 2025
  • 1 reply
  • 0 views

hi experts.

i'm trying to use a button on dashboard that calls a DM sequence. in my sequence, i'm calling copy task. Basically, i'm trying to copy data using DM step where i want to pass scenario as parameter. here is the configuration.

How to pass parameter to copy task from sequence? 

 

button configuration:



Sequence - parameter definition 



copy step:



 

Best answer by victortei

 

here is the combo box setting



 

parameter:



 


Hi prash4030,

Please clear your section on parameter substitutions in your data management sequence.



This should do the deal. You can also trigger the Data Management Sequence directly from the DM to validate this is working.



 If this is working, it would prompt for your input on the ScenarioFrom and ScenarioTo. Something like this:



Then, finally, just try it from the Dashboard to make sure this is working properly.

Hope this helps!

 

 

1 reply

February 18, 2025

Try by keeping all your parameter names the same.  In the above screen shot I see it as the following in the button:

  • ParamCopyScenarioFrom
  • ParamCopyScenarioTo

 

But in the DM Sequence they are:

  • ScenarioFrom
  • ScenarioTo

 

I would keep the parameter names consistent between the BR, Button and DM sequence so they pass through correctly.

prash4030Author
February 18, 2025

hi,

thank you for your reply. i tried making them consistent, still no luck. in DM sequence, where i've defined parameter name, what should i write in value? i have kept this as blank, i am thinking value will flow from button click action?

February 18, 2025

prash4030,

As T_Kress said, try to use the same name everywhere to track it more easily. From your screen, it seems you're not assigning a value to the parameter in the Sequence. Try to do the following:

In your button, it will be something like this:

ParamCopyScenarioFrom=|!ParamCopyScenarioFrom!|, ParamCopyScenarioTo=|!ParamCopyScenarioTo!|

In your Sequence:

Parameter = ParamCopyScenarioFrom
Value = |!ParamCopyScenarioFrom!|

Parameter = ParamCopyScenarioTo
Value = |!ParamCopyScenarioTo!|

In your Copy Step:

|!ParamCopyScenarioFrom!|
|!ParamCopyScenarioTo!|

Please, let us know how it goes