XLSX File
Reads and writes data from a XLS/XLSX file.
Categories: helpers
Type: xlsxFile/v1
Actions
Read from File
Name: read
Reads data from a XLS/XLSX file.
Properties
Name | Label | Type | Control Type | Description | Required |
---|---|---|---|---|---|
fileEntry | File | FILE_ENTRY | FILE_ENTRY | The object property which contains a reference to the XLS/XLSX file to read from. | true |
sheetName | Sheet Name | STRING | TEXT | The name of the sheet to read from in the spreadsheet. If not set, the first one gets chosen. | null |
headerRow | Header Row | BOOLEAN Optionstrue, false | SELECT | The first row of the file contains the header names. | null |
includeEmptyCells | Include Empty Cells | BOOLEAN Optionstrue, false | SELECT | When reading from file the empty cells will be filled with an empty string. | null |
pageSize | Page Size | INTEGER | INTEGER | The amount of child elements to return in a page. | null |
pageNumber | Page Number | INTEGER | INTEGER | The page number to get. | null |
readAsString | Read As String | BOOLEAN Optionstrue, false | SELECT | In some cases and file formats, it is necessary to read data specifically as string, otherwise some special characters are interpreted the wrong way. | null |
JSON Example
{ "label" : "Read from File", "name" : "read", "parameters" : { "fileEntry" : { "extension" : "", "mimeType" : "", "name" : "", "url" : "" }, "sheetName" : "", "headerRow" : false, "includeEmptyCells" : false, "pageSize" : 1, "pageNumber" : 1, "readAsString" : false }, "type" : "xlsxFile/v1/read"}
Write to File
Name: write
Writes the data to a XLS/XLSX file.
Properties
Name | Label | Type | Control Type | Description | Required |
---|---|---|---|---|---|
sheetName | Sheet Name | STRING | TEXT | The name of the sheet to create in the spreadsheet. | null |
rows | Rows | ARRAY Items[{}] | ARRAY_BUILDER | The array of rows to write to the file. | true |
filename | Filename | STRING | TEXT | Filename to set for binary data. By default, “file.xlsx” will be used. | true |
Output
Type: FILE_ENTRY
Properties
Name | Type | Control Type |
---|---|---|
extension | STRING | TEXT |
mimeType | STRING | TEXT |
name | STRING | TEXT |
url | STRING | TEXT |
JSON Example
{ "label" : "Write to File", "name" : "write", "parameters" : { "sheetName" : "", "rows" : [ { } ], "filename" : "" }, "type" : "xlsxFile/v1/write"}