activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow Activities

Last updated Dec 20, 2024

Add Data Row

UiPath.Core.Activities.AddDataRow

Description

Adds a DataRow to a specified DataTable.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Cross-platform configuration

  • Data Table - The DataTable object to which the row is to be added.
  • Data Row - The DataRow object to be added to the DataTable. You can switch between using a Data Row or Array Row from the "+" menu next to the input field.

Windows - Legacy, Windows configuration

Properties panel
Common
  • DisplayName - The display name of the activity.
Input
  • Array Row - An array of objects to be added to the DataTable. The type of each object should map to the type of its corresponding column in the DataTable.
  • DataRow - The DataRow object to be added to the DataTable. If this property is set, then the ArrayRow property is ignored.
  • DataTable - The DataTable object to which the row is to be added.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Supported expressions for the Array Row field

Based on language and framework, the following expressions are supported:

Language/Frameworkstring - {“A”, “B”}int - {1, 2}mixed - {1, 2, “a”, “b”}
Visual Basic - Cross-platform

{"A", "B"}

new object() {1, 2}

new object() {1, 2, "a", "b"}
Visual Basic - Windows

{"A", "B"}

new object() {1, 2}

new object() {1, 2, "a", "b"}
Visual Basic - Windows Legacy

{"A", "B"}

{1, 2}

{1, 2, "a", "b"}
C# - Cross-platform

new object[] {"A", "B"}

new object() {1, 2}

new object[] {1, 2, "a", "b"}
C# - Windows

new object[] {"A", "B"}

new object() {1, 2}

new object[] {1, 2, "a", "b"}
C# - Windows Legacy

new object[] {"A", "B"}

new object() {1, 2}

new object[] {1, 2, "a", "b"}

Example of using the Add Data Row activity

You can see how the Add Data Row activity is used in an example that incorporates multiple activities and it is used for managing multiple databases. You can check and download the example from here.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.