@@ -20,12 +20,12 @@ Script outputs can be read in later flow actions using `outputs('Run_script')?['
2020
2121### Troubleshooting
2222
23- | Symptom | Likely cause |
24- | --- | --- |
25- | ` Table "..." not found ` | Table name mismatch, check exact casing and spacing |
26- | ` Column "..." not found ` | Column name mismatch or table schema has changed |
27- | JSON parse error | Malformed string passed to a JSON parameter, validate with a Compose action first |
28- | Script runs but nothing changes | Active filter hiding rows, wrong key value, or wrong sheet context |
23+ | Symptom | Likely cause |
24+ | ------------------------------- | ------------------------------------------------------------------------------ --- |
25+ | ` Table "..." not found ` | Table name mismatch, check exact casing and spacing |
26+ | ` Column "..." not found ` | Column name mismatch or table schema has changed |
27+ | JSON parse error | Malformed string passed to a JSON parameter, validate with a Compose action first |
28+ | Script runs but nothing changes | Active filter hiding rows, wrong key value, or wrong sheet context |
2929
3030---
3131
@@ -65,9 +65,9 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for conventions when adding new scripts.
6565
6666Adds one or more rows to an existing table from a JSON array.
6767
68- | Parameter | Type | Description |
69- | --- | --- | --- |
70- | ` tableName ` | string | Target table name |
68+ | Parameter | Type | Description |
69+ | ----------- | ------ | -------------------------------------- --- |
70+ | ` tableName ` | string | Target table name |
7171| ` inputJson ` | string | JSON array whose keys match table columns |
7272
7373Example input:
@@ -91,8 +91,8 @@ Example output:
9191
9292Auto-fits all column widths in a table.
9393
94- | Parameter | Type | Description |
95- | --- | --- | --- |
94+ | Parameter | Type | Description |
95+ | ----------- | ------ | -------------- --- |
9696| ` tableName ` | string | Target table name |
9797
9898Example input:
@@ -109,11 +109,11 @@ Example input:
109109
110110Clears one cell in a table by data-row index and column name.
111111
112- | Parameter | Type | Description |
113- | --- | --- | --- |
114- | ` tableName ` | string | Target table name |
115- | ` columnName ` | string | Target column name |
116- | ` rowIndex ` | number | Zero-based data row index |
112+ | Parameter | Type | Description |
113+ | ------------ | ------ | ---------------------- --- |
114+ | ` tableName ` | string | Target table name |
115+ | ` columnName ` | string | Target column name |
116+ | ` rowIndex ` | number | Zero-based data row index |
117117
118118Example input:
119119
@@ -131,9 +131,9 @@ Example input:
131131
132132Converts all-uppercase/all-lowercase names to Proper Case in selected columns.
133133
134- | Parameter | Type | Description |
135- | --- | --- | --- |
136- | ` tableName ` | string | Target table name |
134+ | Parameter | Type | Description |
135+ | -------------- | -------- | ----------------- --- |
136+ | ` tableName ` | string | Target table name |
137137| ` columnsToFix ` | string[ ] | Columns to normalize |
138138
139139Example input:
@@ -151,11 +151,11 @@ Example input:
151151
152152Converts formulas in a table column to static values.
153153
154- | Parameter | Type | Description |
155- | --- | --- | --- |
156- | ` tableName ` | string | Target table name |
157- | ` columnName ` | string | Column to convert |
158- | ` fullColumn ` | boolean | Convert all rows when true |
154+ | Parameter | Type | Description |
155+ | --------------------- | ----------------- | -------------------------------- --- |
156+ | ` tableName ` | string | Target table name |
157+ | ` columnName ` | string | Column to convert |
158+ | ` fullColumn ` | boolean | Convert all rows when true |
159159| ` numberOfRowsFromEnd ` | number (optional) | Required when ` fullColumn ` is false |
160160
161161Example input:
@@ -175,16 +175,16 @@ Example input:
175175
176176Creates a pivot table from a source table.
177177
178- | Parameter | Type | Description |
179- | --- | --- | --- |
180- | ` tableName ` | string | Source table |
181- | ` location ` | "New sheet" \| "Existing sheet" | Placement |
182- | ` rowsColumn ` | string | Row grouping column |
183- | ` valuesColumns ` | string[ ] | Value columns |
184- | ` valuesOperation ` | "Sum" \| "Count" \| "Average" \| "Product" \| "Max" \| "Min" | Aggregation |
185- | ` columnsColumn ` | string (optional) | Column grouping |
186- | ` sheetName ` | string (optional) | Target sheet |
187- | ` pivotTableName ` | string (optional) | Pivot table name |
178+ | Parameter | Type | Description |
179+ | ----------------- | ------------------------------------------------------------ | ---------------- --- |
180+ | ` tableName ` | string | Source table |
181+ | ` location ` | "New sheet" \| "Existing sheet" | Placement |
182+ | ` rowsColumn ` | string | Row grouping column |
183+ | ` valuesColumns ` | string[ ] | Value columns |
184+ | ` valuesOperation ` | "Sum" \| "Count" \| "Average" \| "Product" \| "Max" \| "Min" | Aggregation |
185+ | ` columnsColumn ` | string (optional) | Column grouping |
186+ | ` sheetName ` | string (optional) | Target sheet |
187+ | ` pivotTableName ` | string (optional) | Pivot table name |
188188
189189Example input:
190190
@@ -215,12 +215,12 @@ Example output:
215215
216216Creates a new table from a JSON array on a chosen sheet/cell.
217217
218- | Parameter | Type | Description |
219- | --- | --- | --- |
220- | ` sheetName ` | string | Destination worksheet |
221- | ` startCell ` | string | Top-left table cell (for example A1) |
222- | ` inputJson ` | string | JSON array of objects |
223- | ` tableName ` | string (optional) | Name for created table |
218+ | Parameter | Type | Description |
219+ | ----------- | ----------------- | --------------------------------- --- |
220+ | ` sheetName ` | string | Destination worksheet |
221+ | ` startCell ` | string | Top-left table cell (for example A1) |
222+ | ` inputJson ` | string | JSON array of objects |
223+ | ` tableName ` | string (optional) | Name for created table |
224224
225225Example input:
226226
@@ -248,14 +248,14 @@ Example output:
248248
249249Highlights table headers matched by name list or regex.
250250
251- | Parameter | Type | Description |
252- | --- | --- | --- |
253- | ` tableName ` | string | Target table |
254- | ` highlightColor ` | string | Fill color |
255- | ` matchType ` | "List of column names" \| "RegEx" | Matching mode |
256- | ` columnNamesArray ` | string[ ] (optional) | Required for list mode |
257- | ` regexPattern ` | string (optional) | Required for regex mode |
258- | ` regexFlags ` | string (optional) | Regex flags |
251+ | Parameter | Type | Description |
252+ | ------------------ | --------------------------------- | -------------------- --- |
253+ | ` tableName ` | string | Target table |
254+ | ` highlightColor ` | string | Fill color |
255+ | ` matchType ` | "List of column names" \| "RegEx" | Matching mode |
256+ | ` columnNamesArray ` | string[ ] (optional) | Required for list mode |
257+ | ` regexPattern ` | string (optional) | Required for regex mode |
258+ | ` regexFlags ` | string (optional) | Regex flags |
259259
260260Example input:
261261
@@ -283,9 +283,9 @@ Example output:
283283
284284Sets row height for all rows in a table.
285285
286- | Parameter | Type | Description |
287- | --- | --- | --- |
288- | ` tableName ` | string | Target table |
286+ | Parameter | Type | Description |
287+ | ----------- | ----------------- | ------------- --- |
288+ | ` tableName ` | string | Target table |
289289| ` rowHeight ` | number (optional) | Height in points |
290290
291291Example input:
@@ -303,9 +303,9 @@ Example input:
303303
304304Sorts a table ascending by a selected column.
305305
306- | Parameter | Type | Description |
307- | --- | --- | --- |
308- | ` tableName ` | string | Target table |
306+ | Parameter | Type | Description |
307+ | ------------ | ------ | ------------ --- |
308+ | ` tableName ` | string | Target table |
309309| ` columnName ` | string | Sort key column |
310310
311311Example input:
@@ -323,12 +323,12 @@ Example input:
323323
324324Updates one row identified by a key column value.
325325
326- | Parameter | Type | Description |
327- | --- | --- | --- |
328- | ` tableName ` | string | Target table |
329- | ` keyColumnName ` | string | Lookup column |
330- | ` keyValue ` | string | Lookup value |
331- | ` updatesJson ` | string | JSON object of column: value updates |
326+ | Parameter | Type | Description |
327+ | --------------- | ------ | -------------------------------- --- |
328+ | ` tableName ` | string | Target table |
329+ | ` keyColumnName ` | string | Lookup column |
330+ | ` keyValue ` | string | Lookup value |
331+ | ` updatesJson ` | string | JSON object of column: value updates |
332332
333333Example input:
334334
@@ -364,8 +364,8 @@ Example output:
364364
365365Deletes a worksheet.
366366
367- | Parameter | Type | Description |
368- | --- | --- | --- |
367+ | Parameter | Type | Description |
368+ | ----------- | ------ | ------------ --- |
369369| ` sheetName ` | string | Sheet to delete |
370370
371371Example input:
@@ -382,8 +382,8 @@ Example input:
382382
383383Hides a worksheet.
384384
385- | Parameter | Type | Description |
386- | --- | --- | --- |
385+ | Parameter | Type | Description |
386+ | ----------- | ------ | ---------- --- |
387387| ` sheetName ` | string | Sheet to hide |
388388
389389Example input:
@@ -400,12 +400,12 @@ Example input:
400400
401401Replaces all matching values in a worksheet.
402402
403- | Parameter | Type | Description |
404- | --- | --- | --- |
405- | ` sheetName ` | string | Target sheet |
406- | ` oldValue ` | string | Value to find |
407- | ` newValue ` | string | Replacement value |
408- | ` matchCase ` | boolean | Case-sensitive when true |
403+ | Parameter | Type | Description |
404+ | ------------------------- | ------- | ---------------------------- --- |
405+ | ` sheetName ` | string | Target sheet |
406+ | ` oldValue ` | string | Value to find |
407+ | ` newValue ` | string | Replacement value |
408+ | ` matchCase ` | boolean | Case-sensitive when true |
409409| ` matchEntireCellContents ` | boolean | Whole-cell match only when true |
410410
411411Example input:
@@ -433,11 +433,11 @@ Example input:
433433
434434Returns objects that are new or changed between two arrays.
435435
436- | Parameter | Type | Description |
437- | --- | --- | --- |
438- | ` initialArray ` | object[ ] | Baseline array |
439- | ` newArray ` | object[ ] | Updated array |
440- | ` idColName ` | string | Identity key name |
436+ | Parameter | Type | Description |
437+ | -------------- | -------- | -------------- --- |
438+ | ` initialArray ` | object[ ] | Baseline array |
439+ | ` newArray ` | object[ ] | Updated array |
440+ | ` idColName ` | string | Identity key name |
441441
442442Example input:
443443
@@ -464,13 +464,13 @@ Example output:
464464
465465Runs regex match/test/replace/group operations on a string.
466466
467- | Parameter | Type | Description |
468- | --- | --- | --- |
469- | ` operation ` | "all matches" \| "test match" \| "replace" \| "groups" | Operation |
470- | ` searchString ` | string | Input string |
471- | ` regexPattern ` | string | Regex pattern |
472- | ` regexFlags ` | string (optional) | Regex flags |
473- | ` replaceString ` | string (optional) | Replacement text for replace |
467+ | Parameter | Type | Description |
468+ | --------------- | ------------------------------------------------------ | ------------------------- --- |
469+ | ` operation ` | "all matches" \| "test match" \| "replace" \| "groups" | Operation |
470+ | ` searchString ` | string | Input string |
471+ | ` regexPattern ` | string | Regex pattern |
472+ | ` regexFlags ` | string (optional) | Regex flags |
473+ | ` replaceString ` | string (optional) | Replacement text for replace |
474474
475475Example input:
476476
0 commit comments