GoogleSheets Module
Downloads a Google spreadsheet as an xlsx workbook, caches the workbook by spreadsheet id and returns the rows of a named sheet or an error.
Functions and values
| Function or value |
Description
|
Full Usage:
clearWorkbookCache ()
Parameters:
unit
|
Forgets the workbooks read so far, so the next sheet read downloads the workbook again.
|
Full Usage:
createWorkbookUrl id
Parameters:
string
Returns: string
|
Creates the url that downloads the whole spreadsheet with the given id as an xlsx workbook.
|
|
|
|
|
Full Usage:
getRowsFromSheetSync dataUrlId name
Parameters:
string
name : string
Returns: Result<string array array, string>
|
Returns the rows of a sheet as text, the header row first, waiting for the result. Returns an error when the workbook cannot be loaded or has no sheet with that name. Writes an error to the console, and a warning when the sheet has hidden rows.
|
|
|
Full Usage:
hiddenRowsWarning name sheet
Parameters:
string
sheet : Sheet
Returns: string option
|
Returns the warning for the sheet with the given name when it has hidden rows, or None when no row is hidden.
|
Full Usage:
sharingHint
Returns: string
|
The hint for a spreadsheet that cannot be downloaded because it is not shared.
|
Full Usage:
sheetRows rows
Parameters:
string array array
Returns: string array array
|
Removes every double quote from the cells of a sheet, as the CSV download did, because the sheet readers expect that.
|
GenPRES