Handbook · Reference · Blockly · Files

Blockly: Files

Where in the UI. Scripts tab toolbox.

CSV, filenames, share, PDF document blocks, inventory report.

Block idRead asPurpose
containd_list_to_csvlist to csv1D list → single column; 2D list → rows. Optional headers list becomes the first CSV line.
containd_table_to_csvtable to csvCSV string for this table/fileTable property (pick property when item has multiple tables)
containd_table_to_csv_on_itemtable to csv on itemcallHost(tableToCsv) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_sanitize_filenamesanitize filenamesafe single-segment filename (illegal chars → _, accents stripped, default max 80). Optional extension (e.g. csv) and max length.
containd_save_string_to_filesave string to filewrite UTF-8 text to a temp cache file and return its path. Share yes also needs share.invoke. Use with list/table to CSV for exports.
containd_share_assetshare assetopen the OS share sheet for any local file path/URI (from save string/PDF, screenshot, etc.). Requires share.invoke.
containd_save_pdfsave pdfcallHost(savePdf)
containd_export_inventory_reportexport inventory reportcallHost(exportInventoryReport)
containd_report_export_optionsreport export optionsPartial ReportExportOptions for exportInventoryReport
containd_pdf_documentpdf documentPdfDocumentDefinition for savePdf
containd_pdf_pages_listpdf pages listList of PDF pages
containd_pdf_pagepdf pageSingle PDF page with content blocks
containd_pdf_blocks_listpdf blocks listList of PDF content blocks
containd_pdf_textpdf textPDF text block
containd_pdf_qrpdf qrPDF QR code block
containd_pdf_imagepdf imagePDF image block (tempPath only; assetId not resolved at runtime)
containd_pdf_spacerpdf spacerPDF vertical spacer block