Skip to content

Load data

A from… verb brings data into a node. It is one statement in the node file, so the statements after it shape and check what it loaded.

Verb Loads
fromFile(path) A Workspace file: CSV, Excel, JSON, XML, FIX, SWIFT, PDF, and more
fromWeb(url) Files from the web, a sitemap, a Git repository, or an Azure DevOps project, into a Workspace folder
fromApi(url) The answer of a REST API
fromGraphql(url, query) The records of a GraphQL query
fromEmail() The email that started the run
fromRequest() The REST or GraphQL call that started the run

A node with no incoming wire starts with no rows, so its first statement is usually a from… verb. A node with one wire starts with that wire’s rows. See Combine tables for nodes with several wires.

Every from… verb takes an optional subject in front of it that decides where the data goes:

Written as The data The node’s rows
fromFile("../a.csv") Replaces the rows Become the loaded rows
inputs("prices").fromFile("../prices.csv") Becomes the named table prices Pass through unchanged
context("rates").fromFile("../rates.json") Becomes one value, read with context().prop("rates") Pass through unchanged
eachRow().fromApi(…) Is fetched once per row and added to that row Keep their columns, plus the answer’s

eachRow() applies to the verbs that call out per row: fromApi, fromGraphql, fromAi, and fromTemplate.

fromFile(path) reads a Workspace file. The path is relative to the node file and is a literal: the run fetches every file it reads before it starts.

fromFile("../orders.csv")

Options adjust how the file is read. An option you leave out keeps automatic detection.

Option Use
.sheet(name) Loads one sheet of a workbook as rows
.headerRow(false) Keeps the first row as data instead of column names
.delimiter(text) Sets the separator of delimited text, such as ";"
.encoding(text) Sets the text encoding of the file
.skipEmptyRows(boolean) Keeps or drops blank rows
.recordFormat("delimited" | "fixedWidth") Reads delimited or fixed-width records
.fieldWidths([…]) Sets the field widths of fixed-width records
.fieldNames([…]) Names the fields of fixed-width records
# One sheet of a workbook
fromFile("../positions.xlsx").sheet("Q3")
# Semicolon-separated text
fromFile("../legacy.txt").delimiter(";")
# Fixed-width records
fromFile("../bank-statement.txt")
.recordFormat("fixedWidth")
.fieldWidths([8, 12, 10])
.fieldNames(["date", "account", "amount"])

What a file loads as depends on its type:

  • Tabular files (.csv, .tsv, .psv, .xls, .xlsx) load one row per line or spreadsheet row. A workbook with several sheets loads as one row keyed by sheet name unless you pick one with .sheet(name).
  • JSON loads one row per object of a top-level array. A top-level object loads as one row; a list inside it stays in one cell until you split it (see Map and shape columns).
  • XML loads one row per repeating element, with nested fields as dotted column names.
  • FIX and SWIFT MT load one row per message.
  • PDF, office documents, and images load one row per document with its text and tables, extracted without an AI model.

See Supported formats for every extension and how it parses.

With context("name") in front, a file becomes one value instead of rows: the rows of a tabular file, the parsed document of a .json file, or the text of any other file. That is how a node reads long AI instructions or a template from a file:

context("instructions").fromFile("../instructions/classify.md")
eachRow().fromAi(context("instructions"))
.send("subject", "body")
.returns("category", "text")
.numRowsToProcess(-1)

fromWeb(url).folder(path) downloads into a Workspace folder, relative to the node file. The node’s rows become the download report: one row per file with path, size, and hash. A later node loads a downloaded file with fromFile.

fromWeb("https://example.com/reports/2026-q3.csv").folder("../downloads")
Option Use
.sitemap() Reads the URL as a sitemap and downloads every page it lists; .maxUrls(n) and .maxDepth(n) bound it
.git() Downloads a Git archive of a repository
.workItems(), .wiki(), .repos() For an Azure DevOps project URL (https://dev.azure.com/<organization>/<project>): imports work items, the wiki, or repositories
.repositories(name, …) Narrows the Azure DevOps repositories
.workItemFilter(text) Narrows the Azure DevOps work items with a WIQL condition
.include(glob, …), .exclude(glob, …) Filters the downloaded paths
.timeout(seconds), .concurrency(n) Bounds each request and the number of parallel downloads
.auth(…) Signs in: bearer(secret("T")) for a file, sitemap, or archive; basic("", secret("T")) for Azure DevOps

fromApi(url) calls a REST API and fromGraphql(url, query) runs a GraphQL query. Without a subject, one call’s answer becomes the rows; with eachRow(), each row makes its own call and gains the answer’s fields.

fromApi("https://api.example.com/v1/rates")
.query("base", "EUR")
.records("data.rates")
.returns("ccy", "text")
.returns("rate", "number")

.records(path) says where the list sits in the answer and .returns(name, type) keeps one field with its type. See Call REST and GraphQL APIs for every option, per-row calls, and signing in.

fromEmail() and fromRequest() read what started the run, so they need an inbound trigger on the node.

  • Email: add the node with the Receive an email preset. The node gets its own inbound address, and each email to it starts a run with one row per message: from, to, cc, sent, subject, body, messageId, and attachments. See Send and receive email.
  • Request: add the node with the Receive a request preset and choose REST calls or GraphQL calls under Receives on its Form card, which shows the endpoint to call. The request body is the rows: a JSON list, or one object as one row. context("call").fromRequest() keeps the whole request (method, path, headers without credentials, and body) as one value instead.
fromRequest()
setType("amount", "number")
filter(prop("amount") > 0)

Every wire into the node is a named table, read with inputs().prop("<handle>"). The first wire’s handle is input; each further wire takes a handle from its source node’s title, which you can rename on the wire’s Overview panel.

setProp("price", inputs().prop("prices").find("ISIN", prop("ISIN")).prop("price"))

A node with several wires starts with no rows: nothing merges on its own. appendRows(inputs().prop("trades")) brings a table’s rows in. See Combine tables.

A report sheet often holds several tables, with titles, blank rows, and multi-row headers. inputs("name").subgrid(table, range) cuts an A1 rectangle out of a table and keeps it as a new named table:

inputs("raw").fromFile("../data/report.xlsx").headerRow(false)
inputs("positions")
.subgrid(inputs("raw"), "Positions!B4:H")
.headerRows(2)
appendRows(inputs("positions"))

inputs("name") is a short form of inputs().prop("name"). Here the workbook loads without promoting a header row, the region starting at B4 of the Positions sheet becomes the table positions with its first two rows as column names, and appendRows makes that table the node’s rows.

  • Range: B4:H40 is a fixed rectangle, B4:H grows down to the edge of the data, and B4: grows down and right. A sheet name goes in front, Positions!B4:H, quoted when it holds spaces: 'Q1 2026'!A1:.
  • Growth: an open range stops at the first empty row or column inside it, so a footer below a blank row stays out.
  • Header rows: .headerRows(n) takes the first n rows of the region as column names. With several header rows, each column’s header texts are joined with ., or with the delimiter you set in .headerDelimiter(text).
  • Cells: every cell of the region is read as text. Convert columns with setType afterwards.