Custom Activity with Custom Input and Custom Output

I have create my custom activity which have custom class object as an input parameter and custom object for output, how do i pass value specific to property of my custom input class and get value from custom output object instance

@nkumar1

Welcome to the UIpath Community.

Sorry I didn’t get you and could you please tell more details.

After creating custom Activity and imported that package into Uipath studio or not ?

And also check below thread for your reference.

1 Like

I am able to get property of my custom class by first creating instance (new additionCustomActivity.Employee) and then get my property.
One problem currently i have i am not able to call constructor for my custom activity so that i can pass my property value during instantiating my object.

I commented that code snippet. Please share your comment

public class Employee
{
    //[Category("input")]
    //public Employee(int id, decimal salary)
    //{
    //    this.Id = id;
    //    this.Salary = salary;
    //}

    [Category("input")]
    public int Id { get; set; }
    [Category("input")]
    public decimal Salary { get; set; }
}

Hi @nkumar1

You could go over the activities which are open sourced to see how it’s done there :slight_smile: