How to navigate to different URLs based on an Excel spreadsheet
π‘ Do you need to navigate to multiple URLs iteratively? Each of the URLs contains dynamic values which need to be read from an Excel spreadsheet.
Problem Description
You need to navigate to multiple URLs (and perform certain actions thereafter). For example, you need to navigate to:
https://links.sgx.com/1.0.0/corporate-announcements/<URL1>/<URL2>
Where URL1 and URL2 are dynamic values that you need to read from an Excel file.

In this case, you will need to navigate to the following URLs:
Solution
The following flow provides a high level overview of the solution:

We will need to read the Excel data as a datatable using the action βRead from Excel worksheetβ. Remember to specify that the first line of range contains column names under the advanced properties.

Then, using the action βFor eachβ, we will loop through each of the datarow βCurrentItemβ ****in the datatable. For each iteration of the loop, we use the action βGo to web pageβ to navigate to the URL β%Url%/%CurrentItem[0]%/%CurrentItem[1]%β which consists of 3 parts:
%Url% which is fixed and is βhttps://links.sgx.com/1.0.0/corporate-announcements/βΒ in this example
%CurrentItem[0]% refer to the first column of the current datarow, i.e. βCurrentItemβ, which is read from the Excel
%CurrentItem[1]% refer to the second column of the current datarow, i.e. βCurrentItemβ, which is read from the Excel

Additional Information
Last updated on: 24 Jan 2023
Tested version(s): 2.27.177.22340
Prerequisites: Excel, Browser (e.g. Edge)
Dependencies: None
Known issues: None

