How to Implement Switch Case in Custom Activity

How do I implement a switch case in my Custom Activity Class library C# code.
Like I want to select a specific string and then use that string to choose some element in switch case

Refer to the official documentation here for some examples.

1 Like

I have created a drop down using enum that contains lets say days of a week
public enum Days
{
sunday,
monday
}

now in my custom activity i get a drop down in properties tab, but how do I select an option from
that dropdown and save it as a string or in a variable and the get that string as an output in my custom activity’s Class Library C# code?

@Vaibhav_Oza
Refer here. You populate the dropdown with your enum and then refer to it as you would any other input variable.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.