Articles → UiPath → Invoke Code activity in UiPathInvoke Code activity in UiPathIn this article, we will discuss the "Invoke Code" activity in UiPath.Purpose The "Invoke Code" activity invokes the C# or vb.net code synchronously.Example In this example, we will invoke a C# code for writing the text in the text file. For this, we will perform the following steps. 1. Drag and drop the "Invoke Code" activity. 2. Click on the "Edit Arguments" button of the "Invoke Code" activity. 3. A pop-up window will appear to create an argument. For this example, we will create an argument "Test".Click to Enlarge 4. Click on the "Edit Code" button to write the C# code. In this window, we will write the following C# code.Click to Enlarge 5. In the properties window of the "Invoke Code" activity, specify the language as "CSharp".Click to Enlarge 6. Save and run the bot.Output A text file is created with the following text.Click to EnlargePosted By - Karan Gupta Posted On - Wednesday, February 10, 2021 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Query/Feedback