AhmadKamal.UiPath.DataMutator 1.1.0-beta

This is a prerelease version of AhmadKamal.UiPath.DataMutator.
dotnet add package AhmadKamal.UiPath.DataMutator --version 1.1.0-beta
                    
NuGet\Install-Package AhmadKamal.UiPath.DataMutator -Version 1.1.0-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AhmadKamal.UiPath.DataMutator" Version="1.1.0-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AhmadKamal.UiPath.DataMutator" Version="1.1.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="AhmadKamal.UiPath.DataMutator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AhmadKamal.UiPath.DataMutator --version 1.1.0-beta
                    
#r "nuget: AhmadKamal.UiPath.DataMutator, 1.1.0-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AhmadKamal.UiPath.DataMutator@1.1.0-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AhmadKamal.UiPath.DataMutator&version=1.1.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AhmadKamal.UiPath.DataMutator&version=1.1.0-beta&prerelease
                    
Install as a Cake Tool

AhmadKamal.UiPath.DataMutator

A powerful, lightweight extension package designed specifically for UiPath developers. It allows you to seamlessly mutate DataTable rows and IEnumerable collections using inline Action (VB.NET Sub) delegates.

This package elegantly bypasses the notorious UiPath Expression Tree error BC36534 (Expression cannot be converted into an expression tree) that occurs when trying to assign values directly inside an Assign activity lambda.

🚀 Features

  • ListMutator: Update value types (like Int32) and immutable reference types (like String) within lists using an innovative ItemWrapper<T>. It returns a completely new sequence, ensuring functional purity.
  • DataTableMutator: Safely and cleanly update DataRow fields across an entire DataTable in a single line, eliminating the need for bulky For Each Row activities.
  • UiPath Native Compatibility: Built to integrate perfectly with UiPath's VB.NET Expression Trees.

📦 Installation

  1. Open your UiPath Studio project.
  2. Click on Manage Packages in the ribbon.
  3. Select your designated NuGet source (or All Packages).
  4. Search for AhmadKamal.UiPath.DataMutator.
  5. Click Install and then Save.

💻 Usage & Examples (VB.NET)

1. Mutating a List of Strings / Value Types

When working with standard lists of strings or numbers, UiPath prevents direct assignments like x = "NewValue" inside an Assign activity. We solve this by wrapping items in an ItemWrapper.

Scenario: We have a list of names, and we want to append " _Developer" to each name.

  • Activity: Assign
  • To: myList (Type: List(Of String))
  • Value:
    myList.ListMutator(Sub(w) w.Value = w.Value + " _Developer").ToList()
    
    

How it works: w represents the ItemWrapper. Setting w.Value is treated as a property setter, which UiPath's Expression Tree accepts without throwing the BC36534 error. .ToList() materializes the new mutated list.

2. Mutating a DataTable

You can directly mutate rows in an entire DataTable efficiently.

Scenario: We want to update the "Status" column to "Processed" for all rows in a DataTable.

  • Activity: Assign
  • To: myDataTable (Type: DataTable)
  • Value:
    myDataTable.DataTableMutator(Sub(row) row("Status") = "Processed")
    

How it works: The mutator iterates over the rows and applies your VB.NET Sub directly to each DataRow reference.


⚙️ Compatibility

  • Compatible with Windows and Windows-Legacy projects in UiPath Studio.
  • Built on .NET Standard 2.0 / .NET 6.0 / .NET 8.0 (Verify based on your target framework).

📄 License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0-beta 61 7/24/2026