Data blocks
Parse CSV and JSON, validate XML, read documents, select and combine rows, do date maths and keep reference tables.
| Block | What it does |
|---|---|
| Apply Shape | Checks untyped data, such as parsed JSON, against an expected shape. Most blocks type their own output. |
| Combine | Looks each row up in another table and adds the columns you pick. |
| Create barcode | Makes a QR code or barcode image from text, for a PDF, an email or a label. |
| Create PDF | Makes a PDF from a Typst template, named inputs and files. |
| Current Time | Outputs the current moment in ISO and local date/time forms. |
| Date Math | Adds or subtracts calendar, elapsed, or business time from a date or datetime. |
| Extract document text | Extracts the text of one document, with its pages, lines and words as Tables. |
| JavaScript Transform | Runs a bounded JavaScript transform over automation data. |
| Load Dataset as Array | Loads a small set of rows or a table as a list, with a size cap, so later blocks can read it. |
| Log | Writes a structured entry to the run log, so you can see a value or a decision when you read the run. |
| Parse CSV | Reads a CSV file into rows that later blocks can filter, check or load into a table. |
| Parse JSON | Turns JSON text, such as an API response body, into values later blocks can read. |
| Read Excel | Reads a sheet of an Excel file into rows that later blocks can filter, check or load into a table. |
| Read Reference Table | Reads rows from a Data Lake reference table as a Table. |
| Select Rows | Keeps the rows that pass your rules, sorted and limited. |
| Set Value | Creates one typed value for later blocks to read. |
| Summarise Rows | Totals the rows of a table by group, such as per customer and month. |
| Upsert Free-Day Terms | Upserts one Free-Day Terms record into the adopted enterprise reference table using its primary key. Available on Lainstack Cloud. |
| Validate XML | Validates XML against an XSD schema set and routes valid and invalid documents separately. |
| Write CSV | Writes rows to a CSV file that later steps can return, send or store. |
| Write Excel | Writes rows to an Excel file that later steps can return, send or store. |
| Write Reference Table | Bulk-loads parsed rows into a Data Lake reference table. |
Recipes
Section titled “Recipes”- Reconcile last month’s CDS declarations with your records
- Track CDS declaration status by MRN
- Check your customers’ EORI numbers with HMRC
- Send a UK import declaration to CDS from an invoice
- Turn a shipping document into a spreadsheet
- Estimate UK CBAM charges for imports
- Estimate UK transport emissions for shipments
- Validate customs XML against an XSD before you send it