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.
|