From fabd188d43b565770d447b8a9e22477f7544c734 Mon Sep 17 00:00:00 2001
From: Harshil Patel <43263619+harshilp24@users.noreply.github.com>
Date: Fri, 10 Nov 2023 18:31:34 +0530
Subject: [PATCH] fix: Ghseet update code (#1868)
## Checklist
I have:
- [ ] run the content through Grammarly
- [ ] linked to sample apps when relevant
- [ ] added the meta description for each page in the PR
- [ ] minimized the callouts and added only when necessary
- [ ] added the `queryString` parameter to the Tabs (if used)
- [ ] masked PII in images. For example, login credentials, account
details, and more
- [ ] added images only when necessary
- [ ] deleted the images that are no longer used for the updated pages
in the PR
- [ ] followed the image file naming convention while renaming or adding
new images. (Use lowercase letters, dashes between words, and be as
descriptive as possible)
- [ ] used the `` tag instead of a markdown representation for
images
- [ ] added the `` tag to add a caption to the image
- [ ] added the `alt` attribute in the `` tag
- [ ] verified and updated the cross-references or created redirect
rules for the changed or removed content
- [ ] reviewed and applied the style changes for UI formatting. For
example, Bold the UI elements(Buttons on screen) used in the doc.
---
.../reference/querying-google-sheets.md | 21 +++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/website/docs/connect-data/reference/querying-google-sheets.md b/website/docs/connect-data/reference/querying-google-sheets.md
index 1c550540f3..a42a1cf084 100644
--- a/website/docs/connect-data/reference/querying-google-sheets.md
+++ b/website/docs/connect-data/reference/querying-google-sheets.md
@@ -166,6 +166,9 @@ This command updates a **Sheet Row(s)** entity. The following section lists all
}}
```
+See [Update single row](/connect-data/how-to-guides/insert-and-update-data-in-google-sheets#update-single-row) guide.
+
+
@@ -353,10 +356,24 @@ This command updates multiple **Sheet Row(s)** entities. The following section l
#### Update Row Object(s)
An array of JSON-formatted objects whose key/value pairs represent the columns and values from your table record. You must include a rowIndex key in each row object to specify which record to update in the spreadsheet. Note that the rowIndex property of your row objects in Appsmith refers to its index in the array of table records, not the record's row number in the Google spreadsheet.
-
Example:
-
{`{{ UsersTable.updatedRows }} // includes rowIndex key in each object`}
+
+
+
+*Example:*
+
+```js
+{{
+ Table1.updatedRows.map(row => { // includes rowIndex key in each object
+ return row.allFields
+ })
+ }}
+ ```
+
+ See [Update multiple rows](/connect-data/how-to-guides/insert-and-update-data-in-google-sheets#update-multiple-rows) guide.
+
+
## Troubleshooting
If you are experiencing difficulties, you can refer to the [Datasource troubleshooting guide](/help-and-support/troubleshooting-guide/action-errors/datasource-errors) or contact the support team using the chat widget at the bottom right of this page.
\ No newline at end of file