UIPATH print a list

+2 votes
Hi,

On UIPATH, how can I print a list?

Thanks
Sep 24, 2018 in RPA by egarate
• 140 points
1,644 views
Hey @egarate,
Can you give us more details about what exactly you want to print?
Do you want to print an array? Or do you want to print a string?
Moreover, from where do you want to print it? From an excel, or scrape it from some website?

3 answers to this question.

0 votes

1. If you want to print array of String

you can print the array of string in a line by seperating it with a delimeter like (comma etc) use log message Inside log try this string.Join(",",List_Variable)
If you want to print each element in different line then use this
string.Join(System.Environment.NewLine,List_Variable)

2. Print the list one by one 

Use a foreach, In that put your list variable and in the Do use a writeLine or message box and put the item variable. It will print your values one by one. You cannot print the whole list as toString

answered Sep 26, 2018 by Priyaj
• 56,900 points
0 votes

To print a list of strings you can follow the mentioned steps:

1. Use "foreach" (loop) activity to iterate over each element in the list.

2. Inside the loop, use "message box" activity to display each element.

You can use "invoke" method to first create a list and then add items to it and then following the above steps to display the items one by one.

answered Feb 25 by Anvi
• 13,220 points
+1 vote

1. create a list using listName= new List (ofString) or you can create another list too.

2. with the help of Add Collection activity  you can add the list values. 

3. use for each loop to iterate through list and inside for each loop use message box or writeline activity to print out the list values.

4. instead of using write line , you can write the values in excel by using write cell activity.

 

answered May 16 by Venkat
• 320 points

@Venkat, Using write cell activity would write it into an excel sheet, rather than printing it. So using MessageBox would be a better idea.

Related Questions In RPA

0 votes
1 answer

Clear a text box in uipath?

Use the activity Type Into and in the properties ...READ MORE

answered May 13, 2018 in RPA by wrecker
• 3,110 points
858 views
0 votes
1 answer

Running a UiPath process with a script

You can run any process in PowerShell ...READ MORE

answered May 16, 2018 in RPA by wrecker
• 3,110 points
3,647 views
0 votes
1 answer

How to select an item in UiPath that starts with a string

use a wildcard in selector. make sure that ...READ MORE

answered May 21, 2018 in RPA by wrecker
• 3,110 points
1,355 views
0 votes
1 answer

How to select an item in UiPath that starts with a string

Just use a wildcard in selector. Given ...READ MORE

answered May 28, 2018 in RPA by wrecker
• 3,110 points
214 views
0 votes
1 answer

Robot Manager in UiPath

the robot.exe file is located in: C:\Users\USER_ACCOUNT\AppData\Local\UiPath\app-17.1.6523\Ui-Robot.exe Hope it ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
422 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
342 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,060 views
0 votes
3 answers

Any open source tools for RPA ?

Yes, here is the Free RPA tool ...READ MORE

answered Oct 24, 2018 in RPA by Karthiksiddhu
• 240 points
244 views
0 votes
2 answers

change a specific column of an excel sheet in UiPath

1. First of all , you need ...READ MORE

answered May 16 in RPA by Venkat
• 320 points
2,783 views
0 votes
4 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

These are the steps to add two ...READ MORE

answered Aug 2 in RPA by Shivi Singhal
3,340 views