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:
- Create the variables in UiPath
- Add the Invoke code activity in a Sequence and edit arguments to create a “bridge” with previously created variables
- Create the Lambda Expression doing the job I want
- 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