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
735 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.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,100 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
• 5,680 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 4 days ago by Venkat
• 260 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,090 points
540 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,090 points
2,233 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,090 points
719 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,090 points
84 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,090 points
228 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,090 points
187 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,090 points
762 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
123 views
0 votes
2 answers

change a specific column of an excel sheet in UiPath

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

answered 4 days ago in RPA by Venkat
• 260 points
1,414 views
0 votes
2 answers

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

1. First use the excel application scope ...READ MORE

answered 3 days ago in RPA by Venkat
• 260 points
1,088 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.