Articles → UiPath → Invoke Code Activity In Uipath
Invoke Code Activity In Uipath
Purpose
Example
- Drag and drop the "Invoke Code" activity
- Click on the "Edit Arguments" button of the "Invoke Code" activity
- A pop-up window will appear to create an argument. For this example, we will create an argument "Test"
Click to Enlarge
- Click on the "Edit Code" button to write the C# code. In this window, we will write the following C# code
Click to Enlarge
- In the properties window of the "Invoke Code" activity, specify the language as "CSharp"
Click to Enlarge
- Save and run the bot
Output
Click to Enlarge