![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I have a function JScript and i run this function from automation anywhere, but how can i save the return value of the function to use in automation anywhere? A Easy example, if my Jscript is the follow: function a(b){ return b; } How can i execute from automation anywhere the JScript?? have i to put in the JScript one line more calling the function ( a(value) ) ? How can i pass a parameter from the automation to the function? how can i save the return value to use in automation? Thanks Alvaro Toledo |
| |||
|
I could have spent a parameter and use it in JScript doing: var args = WScript.Arguments; WScript.Echo("Caption: " + args.item(0) ); Now i only have 1 problem: how I can return a value of JScript to put it into a variable of automation? or How I can change the value of the parameter that i spent? I put in the return value of the Run Script of automation anywhere a variable, but don´t change. I don´t know how to write in it. Thanks |
| |||
|
Hello, Using Automation Anywhere, you can pass parameter to any java script and store the return value to a variable. For your reference, we have attached "javascript.atmn". All you need to do is, copy the task files (javascript.atmn) to.....\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\ Create a variable with name “temp” from Tools->Variable Manager. 'Add new variable’ of value type and assign zero to it. Also, copy “sumall.js” file to c:\ drive Run the task. This task will sum up all the parameters that we passed and will return the output to Temp variable. Hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |