Mandala
Tools

Microsoft Excel

Read, write, and update data

Usage Instructions

Integrate Microsoft Excel into the workflow. Can read, write, update, add to table, and create new worksheets.

Tools

microsoft_excel_read

Read data from a Microsoft Excel spreadsheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet to read from
rangestringNoThe range of cells to read from. Accepts "SheetName!A1:B2" for explicit ranges or just "SheetName" to read the used range of that sheet. If omitted, reads the used range of the first sheet.

Output

ParameterTypeDescription
dataobjectRange data from the spreadsheet
metadataobjectSpreadsheet metadata

microsoft_excel_write

Write data to a Microsoft Excel spreadsheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet to write to
rangestringNoThe range of cells to write to
valuesarrayYesThe data to write to the spreadsheet
valueInputOptionstringNoThe format of the data to write

Output

ParameterTypeDescription
updatedRangestringThe range that was updated
updatedRowsnumberNumber of rows that were updated
updatedColumnsnumberNumber of columns that were updated
updatedCellsnumberNumber of cells that were updated
metadataobjectSpreadsheet metadata

microsoft_excel_table_add

Add new rows to a Microsoft Excel table

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet containing the table
tableNamestringYesThe name of the table to add rows to
valuesarrayYesThe data to add to the table (array of arrays or array of objects)

Output

ParameterTypeDescription
indexnumberIndex of the first row that was added
valuesarrayArray of rows that were added to the table
metadataobjectSpreadsheet metadata

microsoft_excel_worksheet_add

Create a new worksheet (sheet) in a Microsoft Excel workbook

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the Excel workbook to add the worksheet to
worksheetNamestringYesThe name of the new worksheet. Must be unique within the workbook and cannot exceed 31 characters

Output

ParameterTypeDescription
worksheetobjectDetails of the newly created worksheet
metadataobjectSpreadsheet metadata

Notes

  • Category: tools
  • Type: microsoft_excel
Microsoft Excel