The Switch Control Flow

The Switch Control Flow

Use Case Description

Why the Switch’s activity argument is not String

AS-IS WORKFLOW, TO-BE WORKFLOW

Other information about the use case

Industry categories for this use case: Other Sector

Skill level required: Beginners

UiPath Products that were used: UiPath Studio

Other applications that were used: -

Other resources: -

What is the top ROI driver for this use case?: Other

@sugeng_raharjo,

You will have to change it from properties panel of Switch case like this.

Thanks,
Ashok :slight_smile:

Hi @sugeng_raharjo

You can change the datatype of the Switch activity. Open the properties of Switch activity and find the Type argument option from the dropdown select the System.String.

Check the below image for better understanding,
The image shows a settings panel for a switch statement in a software application, where the TypeArgument option is highlighted and a dropdown list with various data types, including "String," is displayed. (Captioned by AI)

Hope it helps!!

Hello

Is this a question or a Use Case “in the making”?

If you are wondering why the Switch Activity has Int32 as default expression type, then you can simply change it in the properties panel.

Regards
Soren

Thanks a lot for your support. Yes, now my workflow runs properly.

Regards

Pada Rab, 28 Agu 2024 pukul 13.52 Ashok Karale via UiPath Community Forum <notifications@uipath.discoursemail.com> menulis:

Hie @sugeng_raharjo if your variable type is string then you have to match the switch variable also in the string variable form for this you can simply go in the switch property section and change the variable as the same variable you are working with …
cheers Happy Automation