How to pass input parameter in Inject java script

I have one String variable in my sequence.
I want to pass it in java script function. I tried passing it to input parameter property of inject javascript activity. But function is not reading it.

Please help.

in the ScriptCode property you need something like this:

function (e, inputParameter) {
return “something”;

when the function is called inputParameter will bind to the InputParameter property of the “Inject js script” activity.

See more here: How to work with Inject JS


1 Like

Adding some inputs to @adrian

For @piyush.2224 your reference: Inject JS InputParamter


1 Like