diff --git a/docs/nodes/nodes-library/nodes/GoogleSheets/GoogleSheets1_node.png b/docs/nodes/nodes-library/nodes/GoogleSheets/GoogleSheets1_node.png new file mode 100644 index 000000000..86246904f Binary files /dev/null and b/docs/nodes/nodes-library/nodes/GoogleSheets/GoogleSheets1_node.png differ diff --git a/docs/nodes/nodes-library/nodes/GoogleSheets/GoogleSheets_node.png b/docs/nodes/nodes-library/nodes/GoogleSheets/GoogleSheets_node.png new file mode 100644 index 000000000..f2f678396 Binary files /dev/null and b/docs/nodes/nodes-library/nodes/GoogleSheets/GoogleSheets_node.png differ diff --git a/docs/nodes/nodes-library/nodes/GoogleSheets/README.md b/docs/nodes/nodes-library/nodes/GoogleSheets/README.md index b76479d7f..23bc25933 100644 --- a/docs/nodes/nodes-library/nodes/GoogleSheets/README.md +++ b/docs/nodes/nodes-library/nodes/GoogleSheets/README.md @@ -21,8 +21,9 @@ You can find authentication information for this node [here](../../../credential ## Example Usage -This workflow shows you how to read from from a Google Sheets spreadsheet. You can also find the [workflow](https://n8n.io/workflows/449) on this website. This example usage workflow uses the following two nodes. +This workflow shows you how to add to and read from a Google Sheets spreadsheet. You can also find the [workflow](https://n8n.io/workflows/600) on this website. This example usage workflow uses the following three nodes. - [Start](../../core-nodes/Start/README.md) +- [Set](../../core-nodes/Set/README.md) - [Google Sheets]() The final workflow should look like the following image. @@ -33,12 +34,39 @@ The final workflow should look like the following image. The Start node exists by default when you create a new workflow. -### 2. Google Sheets node + +### 2. Set node + +1. Click on the ***Add Value*** button and select 'Number' from the dropdown list. +2. Enter `id` in the ***Name*** field. +3. Click on the ***Add Value*** button and select 'String' from the dropdown list. +4. Enter `name` in the ***Name*** field. +5. Enter the value for the name in the ***Value*** field. +6. Click on ***Execute Node*** to run the node. + +![Using the Set node to set data to be inserted by the Google Sheets node](./Set_node.png) + + +### 3. Google Sheets node (Append) 1. First of all, you'll have to enter credentials for the Google Sheets node. You can find out how to do that [here](../../../credentials/Google/README.md), in the section 'Google Drive / Sheets API'. -2. Select 'OAuth2' in the *Authentication* field. -3. Copy the string of characters located between `/d/` and `/edit` in your spreadsheet URL. Paste that string in the *Sheet ID* field. -4. In the *Range* field, enter the range of columns to be read from your spreadsheet. -5. In the *Data Start Row* field, enter the number of the first row that contains data, excluding the header row. Keep in mind that it starts with 0. So, in case your data starts from row 2, you'd enter 1 in the field. -6. In the *Key Row* field, enter the number of the header row. Keep in mind that it starts with 0. So, in case your header is in row 1, you'd enter 0 in the field. -7. Click on *Execute Node* to run the workflow. +2. Select 'OAuth2' in the ***Authentication*** field. +3. Select 'Append' from the ***Operation*** dropdown list. +4. Copy the string of characters located between `/d/` and `/edit` in your spreadsheet URL. Paste that string in the ***Sheet ID*** field. +5. In the ***Range*** field, enter the range of columns to append the data to in your spreadsheet. Make sure that your range includes enough columns for all the data included in the Set node. +6. Enter `id` in the A1 cell and `name` in the B1 cell of the spreadsheet. +7. Click on ***Execute Node*** to run the workflow. + +![Using the Google Sheets node to insert data into a Google Sheets spreadsheet](./GoogleSheets_node.png) + + +### 4. Google Sheets node (Read) + +1. Select the credentials that you entered in the previous Google Sheets node. +2. Select 'OAuth2' in the ***Authentication*** field. +3. Select 'Read' from the ***Operation*** dropdown list. +4. In the ***Sheet ID*** field, enter the same string used in the previous Google Sheets node. +5. In the ***Range*** field, enter the same range used in the previous Google Sheets node. +6. Click on ***Execute Node*** to run the workflow. + +![Using the Google Sheets node to read data from a Google Sheets spreadsheet](./GoogleSheets1_node.png) diff --git a/docs/nodes/nodes-library/nodes/GoogleSheets/Set_node.png b/docs/nodes/nodes-library/nodes/GoogleSheets/Set_node.png new file mode 100644 index 000000000..e72daaeef Binary files /dev/null and b/docs/nodes/nodes-library/nodes/GoogleSheets/Set_node.png differ diff --git a/docs/nodes/nodes-library/nodes/GoogleSheets/workflow.png b/docs/nodes/nodes-library/nodes/GoogleSheets/workflow.png index 0f97b302b..8df8e86de 100644 Binary files a/docs/nodes/nodes-library/nodes/GoogleSheets/workflow.png and b/docs/nodes/nodes-library/nodes/GoogleSheets/workflow.png differ