Downloading and reading an Excel file

This example demonstrates how to download and how to read data from an Excel file. We will use RPA.Excel.Files and RPA.HTTP libraries from the RPA Framework.

*** Settings ***
Documentation   Download an Excel file and read the rows.
Library         RPA.Excel.Files
Library         RPA.HTTP

*** Variables ***

*** Tasks ***
Download an Excel file and read the rows
    Download        ${EXCEL_FILE_URL}           overwrite=True
    Open Workbook   Data.xlsx
    ${table}=       Read Worksheet As Table     header=True
    Close Workbook

    FOR     ${row}  IN  @{table}
        Log     ${row}

See RPA.Excel.Files keyword documentation to learn more about working with Excel files.