Skip to content

Commit

Permalink
fix: Gsheet Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilp24 committed Nov 10, 2023
1 parent c7280bd commit 2a1272a
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions website/docs/connect-data/reference/querying-google-sheets.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,29 @@ This command updates a **Sheet Row(s)** entity. The following section lists all
#### Update Row Object

<dd>A JSON-formatted object whose key/value pairs represent the columns and values from your table record. You must include a <code>rowIndex</code> key to specify which record to update. If you fetched the record from another Google Sheets query, this index value should be available on its <code>rowIndex</code> property.</dd>
<dd><i>Example:</i>
<pre>{`{
...{{ UsersTable.selectedRow }}, // includes rowIndex key
"status": "accepted"
}`}</pre>

<dd>

*Example:*

```js
//For JSON Form: {{JSONForm1.formData.id}}
//For Table inline editing: {{ Table1.updatedRow.id }}

{{
{
rowIndex: Table1.selectedRow.rowIndex, // includes rowIndex key
"id": Form1.data.TextID,
"name": Form1.data.InputName,
"country": Form1.data.SelectCountry

}
}}
```

</dd>


### Delete One

This command deletes a given entity: **Sheet Row(s)**, **Spreadsheet**, or **Sheet**. The following section lists all the fields available for the **Delete One** command.
Expand Down

0 comments on commit 2a1272a

Please sign in to comment.