Custom class in InvokeCode activity


#1

Hi
Is it possible to use a custom class having custom properties in InvokeCode Activity and have it accessible in UiPath project workflow?
I have attached Utiliies.xaml for reference.
I have declared a class named “MyUser” in InvokeCode activity. And I want instance of that class accessible outside in main workflow. Is it possible, and how?
Utilities.xaml (5.8 KB)


#2

I don’t think you can declare new classes at runtime. You can declare the class you want in an external library and add the resulting DLL to UiPath:

After following these steps, you should be able to add your library to the Imports tab and create variables of your custom type.


#3

thanks @sfranzen. I had figured it out.