No option for multiple input parameter in UiPath inject java script activity. Parameter holds value from some activity


#1

How to pass multiple parameter in inject javascript input parameter.


InjectJS activity - Type Error: _clientFunc is not a function
#2

Attached code is one way.

Send comma saperated parameters in your Input Parameter attribute and split that in your js file.

jsmultipleparam.zip (2.2 KB)


#3

Thanks for example but in this case “microsoft,google,oracle” this is treated as entire string. I have to pass two variables that carry values from an activity.


#4

how about passing?

variable1.ToString + variable2.ToString ?


#5

By doing so I am unable to read values in java script.

input parameter : variable1.ToString + variable2.ToString

function abs(e,readValues) {
alert(readValues);
}

alert is not getting popped.


#6

Works fine for me.Try to figure out whats going wrong on your end.


#7

Great … @vvaidya thankyou…


#8

How to load multiple js files using Injectjs activity.


#9

@vvaidya How to pass multiple parameters to InjectJavascript activity and how to use those variables in Javascript code.


#10