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
10,756 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
• 58,020 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 26, 2019 by Anvi
• 14,150 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, 2019 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

Expression in VB for automating serial numbers in a list using uipath studio

Hi @Pratibha, if I understand your problem ...READ MORE

answered Oct 24, 2019 in RPA by Abha
• 28,140 points
1,360 views
0 votes
1 answer

Get a list of files from a Directory using UiPath Studio

Hey Apeksha, you can try following pseudo ...READ MORE

answered Nov 5, 2019 in RPA by Abha
• 28,140 points
8,625 views
0 votes
1 answer

Clear a text box in uipath?

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

answered May 14, 2018 in RPA by wrecker
• 3,110 points
3,169 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
7,159 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
1,883 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
1,608 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
2,718 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
1,849 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, 2019 in RPA by Venkat
• 320 points
5,898 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, 2019 in RPA by Shivi Singhal
14,795 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP