yangyq10
(IvanY)
August 22, 2024, 5:27am
1
Dear Experts
Need to copy B2:B5 in excel and paste into below WEB column
I can simply Ctrl+C in excel and Ctrl+V in web only once for all
But I am not sure what is the best way to do so in UiPath
Can you give me some idea?
Expected result, Ctrl+V only once and no need to type in one by one
Thank you for your advise in advance
lrtetala
(Lakshman Reddy)
August 22, 2024, 5:33am
2
Hi @yangyq10
String.Join(" ", DT.AsEnumerable().Select(Function(row) row("ColumnName").ToString()))
Regards,
mkankatala
(Mahesh Kankatala)
August 22, 2024, 5:37am
4
Hi @yangyq10
Follow the below steps,
→ Use the Read range workbook activity to read the excel and store in a datatable called DT.
→ Then use the assign activtity and create a variable called Str_Value to store all the values in PURCHASE ORDER NUMBER column. Then use the below expression,
- Assign -> Str_Value = String.Join(" ", DT.asenumerable.select(Function(X) X("PURCHASE ORDER NUMBER").toString).tolist())
→ Then use the Type into activity and give the Str_Value to type the value in the variable in the field.
Note: Change the Column name in the expression as it is in excel file.
Hope it helps!!
1 Like
yangyq10
(IvanY)
August 22, 2024, 5:37am
5
@lrtetala Thank you~~Its awesome
1 Like
system
(system)
Closed
August 25, 2024, 5:38am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.