How it works
The step uses the Microsoft Graph API to read the used range of each requested worksheet — the rectangular region fromA1 to the last cell that contains data. Empty trailing rows and columns are not returned.
To keep payloads predictable, the step caps the number of rows and columns it reads. When a worksheet exceeds the cap, the response is truncated and flagged so downstream steps can handle the partial result gracefully.
Prerequisites
- The OneDrive Excel steps must be enabled on your workspace (feature flag:
step-sdk-onedrive-excel). - A Microsoft OAuth credential with at least read access to the file.
- The Excel file already exists at the configured Path.
Inputs
Outputs
Each worksheet entry exposes:
Reference the data with standard expression syntax, for example:
{{Steps.Read_File.Worksheets[0].UsedRange.Values}}{{Steps.Read_File.WasTruncated}}
Examples
1) Read a specific worksheet
- Path:
/Reports/Quarterly Summary.xlsx - Worksheet Name:
Q1 - Max Rows:
500
{{Steps.Read_File.Worksheets[0].UsedRange.Values}} into an AI model prompt for analysis.
2) Read every worksheet in a file
- Path:
/Imports/Customers.xlsx - Worksheet Name: (leave empty)
{{Steps.Read_File.Worksheets}} and process each one.
3) Guard against truncation
Branch downstream:- If
{{Steps.Read_File.WasTruncated}}istrue→ take a fallback path (warn the user, log the truncation, or split the file). - Else → continue with the full dataset.
Notes and limitations
- Used range only. Cells with formatting but no value are still considered empty and are not included in the used range.
- Hidden worksheets are returned along with visible ones. Filter on the worksheet name if you need to exclude them.
- Pivot tables and charts are not exported — only cell values from the underlying range.
- Formulas return their cached value, not the formula text.
- Bulk reads have a soft Graph limit. If you regularly exceed it, lower the caps and read worksheets one at a time.
