Enhanced Google Sheets docs

This commit is contained in:
Amudhan 2020-08-11 06:35:03 +05:30
parent dbe4a07d3c
commit 741d1012ea
5 changed files with 33 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -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 and read from 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,36 @@ 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 `Number` in the ***Name*** field.
3. Click on the ***Add Value*** button and select 'String' from the dropdown list.
4. Enter `Text` 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 cell A1 and `name` in cell B1 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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 53 KiB