Search code examples
c#automationanywhere

Automation Anywhere Metabots


I have a classlibrary (c# dll) that has list of string as a parameter,how to pass arguments to this list using AA variables(only type of variables available in AA are-value,password,array in metabot).I have tried passing array but this does not work(no output is produced). Can someone just try this example an share me the solution. Thanks in Advance.


Solution

  • As far as I know this is not possible. They way I resolved this is to concatenate the entire array in AA, resulting in 1 string. Using some kind of delimiter.

    E.g. ['foo']['bar']['far'] will become 'foo;bar;far'.

    Make the dll accept a string instead of an array and split it inside of the C# method.

    If somehow it is possible to directly pass an array as parameter, I would love to hear it.