Skip to content
Learni
View all tutorials
Automatisation des processus

How to Develop Advanced UiPath Automations in 2026

Lire en français

Introduction

UiPath is the leading RPA platform for business process automation. In 2026, companies demand scalable solutions that integrate custom code, APIs, and strict governance through Orchestrator. This expert tutorial guides you from advanced configuration to production deployment while avoiding common pitfalls with complex workflows.

Prerequisites

  • UiPath Studio Enterprise 2025.10+
  • .NET 8 SDK and Visual Studio 2022
  • UiPath Orchestrator account with license
  • Strong knowledge of C# and JSON
  • Access to a Windows test environment

UiPath Project Configuration

project.json
{
  "name": "AdvancedRPA2026",
  "description": "Automatisation experte avec API et Orchestrator",
  "version": "1.0.0",
  "main": "Main.xaml",
  "dependencies": {
    "UiPath.System.Activities": "[24.10.0]",
    "UiPath.UIAutomation.Activities": "[24.10.0]",
    "UiPath.WebAPI.Activities": "[1.18.0]"
  },
  "runtimeOptions": {
    "requiresUserInteraction": false,
    "supportsPersistence": true
  }
}

This project.json file defines critical dependencies and enables persistence for long-running workflows. Always lock versions to prevent production regressions.

Advanced Main Workflow

Main.xaml
<?xml version="1.0" encoding="UTF-8"?>
<Activity mc:Ignorable="sap sap2010" x:Class="AdvancedRPA2026.Main" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Sequence>
    <ui:InvokeCode Language="CSharp" Provider="Compiler|NetFramework|4.6.1" 
      Code="System.Console.WriteLine(\"Démarrage RPA expert 2026\");" />
  </Sequence>
</Activity>

This minimal XAML workflow integrates Invoke Code to execute native C#. It serves as the foundation for complex sequences with error handling and structured logging.

REST API Integration

ApiCall.xaml
<?xml version="1.0" encoding="UTF-8"?>
<Activity>
  <ui:HttpClient ClientCertificate="{x:Null}" ClientCertificatePassword="{x:Null}" ClientCertificateThumbprint="{x:Null}" ConsumerKey="{x:Null}" ConsumerSecret="{x:Null}" ContinueOnError="False" DisplayName="Appel API Expert" sap2010:WorkflowViewState.IdRef="HttpClient_1" Endpoint="https://api.expert.com/data" HttpHeaders="{x:Null}" OAuth1Token="{x:Null}" OAuth1TokenSecret="{x:Null}" OAuth2Token="{x:Null}" Password="{x:Null}" Username="{x:Null}" />
</Activity>

The HttpClient activity handles secure REST calls. Always configure Bearer authentication headers and manage timeouts for high-latency environments.

Custom C# Code

CustomActivity.cs
using System;
using System.Activities;
namespace CustomRPA {
  public class ExpertLogger : CodeActivity {
    protected override void Execute(CodeActivityContext context) {
      Console.WriteLine("Log expert UiPath 2026");
    }
  }
}

Create reusable C# activities to encapsulate complex business logic. Compile into DLLs and import into UiPath for centralized maintenance.

Orchestrator Configuration

orchestrator-config.json
{
  "orchestratorUrl": "https://cloud.uipath.com",
  "tenant": "DefaultTenant",
  "folder": "Production2026",
  "robotKey": "YOUR_ROBOT_KEY",
  "processName": "AdvancedRPA2026",
  "environment": "PROD",
  "maxJobs": 10
}

This JSON file configures deployment to Orchestrator. Use environment variables for sensitive keys and enable automatic job scaling.

Best Practices

  • Always use environment variables for credentials
  • Implement try-catch with structured logging to Elasticsearch
  • Version workflows via Git before deployment
  • Limit workflow size to a maximum of 50 activities
  • Test in unattended mode before production release

Common Errors to Avoid

  • Forgetting to handle asynchronous exceptions in API calls
  • Using non-robust UI selectors without anchors
  • Neglecting NuGet dependency updates
  • Ignoring Orchestrator quotas leading to job blocks

Further Learning

Deepen your skills with our advanced UiPath training.