QuestionQ30

VerifiedVariables and Arguments

A developer has built a data table, dt_Users, as shown in the following exhibit:

Question Image

After scraping data from a web application, the developer wants to add each User ID in the dt_Users variable to the List variable Users_List. To do this, the developer plans to use an Append Item to collection activity inside a For Each Row activity.

Question Image

How should the Items property of the Append Item to collection activity be configured?

Explanation

A DataRow is indexed by column position. Because UserName is the first column (index 0) and User ID is the second column (index 1), the value to append during each iteration is the current row's item at index 1, converted to a string. UiPath documentation likewise illustrates accessing DataTable values from the row variable by numeric column index.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!