You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d58fd71
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/microsoft_excel.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Add new rows to a Microsoft Excel table
57
57
|`driveId`| string | No | The ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses the signed-in user’s default OneDrive. Excel workbook APIs require a business account. |
58
58
|`tableName`| string | Yes | The name of the table to add rows to \(e.g., "Table1", "SalesTable"\)|
59
59
|`index`| number | No | Zero-based insertion index. Omit to append at the end. |
60
-
|`values`|json| No | Data rows in table column order, without headers \(e.g., \[\["Value", 30\]\]\). Object rows are also accepted in key order for compatibility. Omit to add a blank row. |
60
+
|`values`|array| No | Data rows in table column order, without headers \(e.g., \[\["Value", 30\]\]\). Object rows are also accepted in key order for compatibility. Omit to add a blank row. |
61
61
62
62
#### Output
63
63
@@ -345,7 +345,7 @@ Update Table Row in a Microsoft Excel workbook.
345
345
|`sessionId`| string | No | Workbook session ID from Create Session. Omit for a sessionless request that saves changes. |
346
346
|`tableName`| string | Yes | Table ID or name within the workbook. |
347
347
|`index`| number | Yes | Zero-based table row index. Indexes can change when rows are inserted or deleted. |
348
-
|`values`|json| Yes | Exactly one row as a two-dimensional array, in table column order. Use null to leave a cell unchanged. |
348
+
|`values`|array| Yes | Exactly one row as a two-dimensional array, in table column order. Use null to leave a cell unchanged. |
349
349
350
350
#### Output
351
351
@@ -496,18 +496,18 @@ Write data to a specific sheet in a Microsoft Excel spreadsheet
496
496
497
497
| Parameter | Type | Required | Description |
498
498
| --------- | ---- | -------- | ----------- |
499
-
|`formulas`|json| No | A1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
500
-
|`formulasLocal`|json| No | A1-style formulas in the user locale as a two-dimensional array. Null leaves a cell unchanged. |
501
-
|`formulasR1C1`|json| No | R1C1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
502
-
|`numberFormat`|json| No | Excel number format codes as a two-dimensional array. Null leaves a cell unchanged. |
499
+
|`formulas`|array| No | A1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
500
+
|`formulasLocal`|array| No | A1-style formulas in the user locale as a two-dimensional array. Null leaves a cell unchanged. |
501
+
|`formulasR1C1`|array| No | R1C1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
502
+
|`numberFormat`|array| No | Excel number format codes as a two-dimensional array. Null leaves a cell unchanged. |
503
503
|`columnHidden`| boolean | No | Hide all columns in the target range. |
504
504
|`rowHidden`| boolean | No | Hide all rows in the target range. |
505
505
|`sessionId`| string | No | Workbook session ID from Create Session. Omit for a sessionless request that saves changes. |
506
506
|`spreadsheetId`| string | Yes | The ID of the spreadsheet/workbook to write to \(e.g., "01ABC123DEF456"\)|
507
507
|`driveId`| string | No | The ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses the signed-in user’s default OneDrive. Excel workbook APIs require a business account. |
508
508
|`sheetName`| string | Yes | The name of the sheet/tab to write to \(e.g., "Sheet1", "Sales Data"\)|
509
509
|`cellRange`| string | No | The cell range to write to \(e.g., "A1:D10", "A1"\). Defaults to "A1" if not specified. |
510
-
|`values`|json| No | The data to write as a 2D array \(e.g. \[\["Name", "Age"\], \["Alice", 30\], \["Bob", 25\]\]\) or array of objects. |
510
+
|`values`|array| No | The data to write as a 2D array \(used exactly as provided\) or array of objects. For object rows, their keys become a header row. Use a 2D array to write data without added headers. |
511
511
512
512
#### Output
513
513
@@ -668,7 +668,7 @@ Sort a range or table by one or more fields in a Microsoft Excel worksheet
668
668
669
669
| Parameter | Type | Required | Description |
670
670
| --------- | ---- | -------- | ----------- |
671
-
|`sortFields`|json| No | Sort conditions \[\{key, ascending, sortOn, color, dataOption, icon\}\]. Overrides sortColumn/sortAscending; ascending defaults to true for each condition; key is a zero-based offset, sortOn is Value, CellColor, FontColor, or Icon; dataOption is Normal or TextAsNumber; icon contains set and index. |
671
+
|`sortFields`|array| No | Sort conditions \[\{key, ascending, sortOn, color, dataOption, icon\}\]. Overrides sortColumn/sortAscending; ascending defaults to true for each condition; key is a zero-based offset, sortOn is Value, CellColor, FontColor, or Icon; dataOption is Normal or TextAsNumber; icon contains set and index. |
672
672
|`sortMethod`| string | No | Chinese character ordering: PinYin or StrokeCount. |
673
673
|`orientation`| string | No | Rows \(default\) or Columns. Applies only to range sorts. |
674
674
|`sessionId`| string | No | Workbook session ID from Create Session. Omit for a sessionless request that saves changes. |
0 commit comments