Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam UiPath-ADAv1 Topic 18 Question 12 Discussion

Actual exam question for UiPath's UiPath-ADAv1 exam
Question #: 12
Topic #: 18
A developer created a datatable, dt_Users as shown in the following exhibit.

After populating the datatable variable, the developer wants to assign each User ID in dt_Users to a List<String> variable Users_List. To achieve this, the developer plans to use an Add To Collection activity inside a For Each Row activity.

How should the Item property of the Add To Collection activity be configured?

Suggested Answer: A Vote an answer

To assign each User ID in dt_Users to a List<String> variable Users_List, the Item property of the Add To Collection activity should be configured as:
CurrentRow(0).ToString
This expression accesses the value of the first column (index 0) in the current row of the dt_Users datatable using the CurrentRow variable. The CurrentRow variable is a DataRow object that represents the row that is being iterated in the For Each Row activity. The expression uses the ToString method to convert the value of the User ID column to a string type. The expression returns the User ID value as a string, which is then added to the Users_List variable by the Add To Collection activity1. For example, if the dt_Users datatable has the following values:
User ID
Name
101
John
102
Mary
103
Bob
Then the expression CurrentRow(0).ToString will return 101, 102, and 103 as the User ID values in each iteration of the For Each Row activity, and these values will be added to the Users_List variable.
References: Add To Collection and For Each Row from UiPath documentation.

by Herman at May 05, 2026, 02:17 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.