Pass variable as output filename

Hi,

How can I set the variable i’ve created on the modified javascript step to make it the output filename?

Hi @jmr

Can you elaborate your use case?

here’s the syntax on the modified javascript step.

what I would like to do is make the “Filepath” as the output filename on the next step which is the excel writer. is this possible?

Yes it is possible, in the Modified JavaScript step there is a button called Get Variables, you can click on it and all the variables declared in the JavaScript will appear as an output, so select the desired variable and pass it to the next step.
I’ve attached the screenshot for your reference.

and then here on the Filename field, what should i write to make it the filename?

One of the ways is to use a workflow executor and then create a new workflow and pass those parameters in that workflow.

badges