Write Excel | Leapwork Docs

The Write Excel block writes data into an Excel file. After you select a header range, the block lets you insert or append data under those columns based on the fields you connect in the flow.

When fully expanded, the following is an example of the Write Excel block:

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Write Excel onto the canvas.
  2. Connect the block in the flow and set the key parameters, such as Source type, Path to file or Cloud file properties (Connection, Site URL, File Name), Range, Method, then connect the column fields you want to write.
  3. Run the flow when it’s ready.

For a minimal setup, point the block to an existing Excel file, define a Range, keep the default Method, and map only the columns you need.

Building block parameters

Parameters

Because the file is not stored in Leapwork, you can update its content directly at that path and the block will write to the updated file.

A SharePoint connection must be configured in advance to use this parameter. Follow the instructions in the Microsoft Graph connection guide to set up the connection.

Note: Available from 2025.1 onward.

This field is mandatory when Source type = Cloud file, and must contain a valid.

Note: The URL must be correctly formatted to match the SharePoint environment.

Note: The file must exist in the specified SharePoint site, and the user must have write permissions. If the file is moved or renamed, the connection may fail.

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.
Sharepoint Connection Configuration and usage of the SharePoint connection in Leapwork to read from and write to Excel files stored in SharePoint.