Chrome browser API

Hi team,

i have one excel in excel file different URL. I want to paste the one by one URL on Chrome browser and download the file one by one.
i want this activity in backend so any available API.

please let me know.

Hi @AsadPathan2665

Use HTTP Request activity

Regards,

Hi @AsadPathan2665

You can use this activity Download file from URL.

Read your excel file in datatable & loop over it & pass the URL one by one to this activity,

image

Hope this helps :slight_smile:

Hi @AsadPathan2665

=> Use Read Range Workbook activity to read the excel and store the output in a datatable say dtInput

=> Use For Each row in DataTable to iterate through each row in DataTable.

=> Inside that use the below code in Invoke Code:

Dim client As New System.Net.WebClient
Dim fileName As String = System.IO.Path.GetFileName(New Uri(url).LocalPath)
Dim savePath As String = System.IO.Path.Combine("C:\Users\"+Environment.UserName+"\Downloads\", fileName) ' Adjust the path as needed
client.DownloadFile(url, savePath)

Invoke Code Arguments:

Note: Change the column name in Invoke Code Arguments according to yours CurrentRow("yourcolumnname").ToString

FLOW:

XAML:
Test.xaml (9.0 KB)

Let me know if you face any issues.

Hope it helps!!

Hi @AJ_Ask,
this activity not available in activity pannel. which package should be download?


taken from:

contained in:
grafik

Only Available for windows compatibility:
grafik

but available in newer versions. Which package version is used at your end?

maybe you need to upgrade the this package
This image shows a node in a project or package manager tree indicating that the UiPath.System.Activities package is at version 24.10.3. (Captioned by AI)

Hi @Parvathy ,

can we download video as well?. some link is video link.

Hi @AsadPathan2665

Yes it will download the video link also.

Check and let me know if you face any issues with the code.

Regards

Hi @Parvathy ,
the attached error is coming.

Hi @AsadPathan2665

Can you show what have you passed in Invoke Code Arguments?

Regards

Hi @Parvathy
please see.

Hi @AsadPathan2665

Make sure your column name doesn’t contain any extra spaces. Try to copy the column name and paste it there.

Regards

Hi @Parvathy,

same error coming

Hi @AsadPathan2665

Try this:

Hope it helps!!
Happy Automation :uipath:

@AsadPathan2665

Can you share the excel file you are using.

Regards

Hi @Parvathy ,

we cant share the excel file its security purpose.

@AsadPathan2665

If the urls are full ursl like having extension also in url and would take to downlod or would download directly

Then best use download file from url

If not use http request…in uri field pass the url and in the Filename for response attachment field pass the complete path where it needs to be downloaded

Both the options work

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.