I created a custom CodeActivity in C# that I am using in a sequence within a state machine in UiPath. The custom CodeActivity involves calling an API through an async method.
I cannot get it to work.
I’ve tried using AsyncCodeActivity using this method: workflow foundation 4 - Implementing AsyncCodeActivities (using C# async/await) - Stack Overflow
I’ve also tried:
In some cases the robot just never ends. In other cases the robot fails with an error message: “An Activity can only get the location of arguments which it owns.”. This happens when I try to access the output value of the activity.
How can I do an async method call within a CodeActivity in UiPath?