Invoke code activity Error

Hello @malam9384,

Hope you’re doing well. I think I had the same problem as yours and this is how I figured it out : using Lambda Expressions (please see example here VB.NET Lambda Expressions - Dot Net Perls).

So, to make your FindMax function in UiPath I followed the following steps:

  1. Create the variables in UiPath
  2. Add the Invoke code activity in a Sequence and edit arguments to create a “bridge” with previously created variables
  3. Create the Lambda Expression doing the job I want
  4. That’s all folks!

You’ll find attached the working XAML file for this example FindMax With Invoke Code.xaml (5.7 KB).

Regards,
@Masire

9 Likes