How to pass input parameter in Inject java script

uiautomation
uipath

#1

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.


#2

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

Adrian.


#3

Adding some inputs to @adrian

For @piyush.2224 your reference: Inject JS InputParamter

Regards…!!
Aksh