Write and validate custom C#.Net scripts and execute them as part of your automation by using the C#.Net connector in RPA Desktop Design Studio.

Before you begin

Role required: Developer

Procedure

  1. In the Toolbox pane, navigate to Connectors > C#.NET.
  2. Drag the C#.Net connector to Global Objects in the Project Explorer pane.
  3. Right-click the C#.Net connector in Global Objects and select Configure.
    The Script Editor window is displayed.
  4. Enter the custom script in the Script pane.
    Figure 1. Script pane in Script Editor
    Script pane in Script Editor
  5. (Optional) Select Add Reference from the References tab section if you want to add Dynamic-link library (DLL) references to your custom script.
    You can select the references from the Reference Manager window and also from your computer.
  6. Select Validate.
    If your custom script has any errors, it is displayed in the Errors pane. Resolve the errors and select Validate to check for errors again.
    Figure 2. Error pane for Script Editor
    Error pane for Script Editor
  7. Click OK.
    If you want to save the changes, select Yes. An error validation is performed again and the changes are saved. If you want to discard the changes, select No.

What to do next

The custom script you created by using the C#.Net connector is now ready to be used in your automation.