# Export/import data from Google Sheets

**URL:** <https://forums.losant.com/t/export-import-data-from-google-sheets/581>\
**Category:** Help\
**Created:** [August 10, 2017, 4:47pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581 "2017-08-10T16:47:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![niam\_frost](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@niam\_frost](https://forums.losant.com/u/niam_frost)\
**Post date:** [August 10, 2017, 4:47pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/1 "2017-08-10T16:47:55Z")

</div>

1. Is there a way to get cells value from Google Sheets?
2. Is there a way to put data into the cell?

Are there plans to add a Google Docs connector?

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [August 10, 2017, 5:28pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/2 "2017-08-10T17:28:26Z")

</div>

We do not have a direct integration with Google Docs or Google Sheets at this time, but we’ll add it to our product backlog.

Google Sheets does have an [API](https://developers.google.com/sheets/), so it’s possible to use an [HTTP node](https://docs.losant.com/workflows/data/http/) in a [workflow](https://docs.losant.com/workflows/overview/) to read from or write to your sheets.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [August 10, 2017, 6:06pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/3 "2017-08-10T18:06:31Z")

</div>

If you’re an [IFTTT](https://ifttt.com) user, you can skip the API integration and push data to a Google Sheet using an IFTTT [webhook trigger](https://ifttt.com/maker_webhooks) and a [Google Drive action](https://ifttt.com/google_drive). You would still use the HTTP node to send a web request to your IFTTT webhook and it would take care of interacting with your spreadsheet.

We actually wrote a [blog article](https://www.losant.com/blog/using-losant-with-ifttt-and-google-sheets) on this topic last year; the interfaces for both IFTTT and Losant have changed a bit since then but the general idea is the same.

---

<div class="post-metadata">

**Author:** ![niam\_frost](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@niam\_frost](https://forums.losant.com/u/niam_frost)\
**Post date:** [August 10, 2017, 6:46pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/4 "2017-08-10T18:46:58Z")

</div>

Thanks. Unfortunately, as I know, IFTTT only supports “add new row” action. I need “update cell value” action.

---

<div class="post-metadata">

**Author:** ![niam\_frost](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@niam\_frost](https://forums.losant.com/u/niam_frost)\
**Post date:** [August 11, 2017, 2:36pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/5 "2017-08-11T14:36:48Z")

</div>

Finally, I figured out how to read google sheet cells data using HTTP node but still can’t find the solution how to write (update) data in specific cell.  
Can you explain, is it possible in Losant?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [August 11, 2017, 2:55pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/6 "2017-08-11T14:55:03Z")

</div>

Since you’re not the first person to try and do something like this, I’m going to write up a tutorial on our blog for some custom interactions with Google Sheets. I should have something up by the middle of next week, and will let you know when it is published.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [November 4, 2017, 1:17am UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/7 "2017-11-04T01:17:14Z")

</div>

@niam_frost we just created a series of workflow nodes to [create](https://docs.losant.com/workflows/logic/jwt-create/), [verify](https://docs.losant.com/workflows/logic/jwt-verify/) and [decode](https://docs.losant.com/workflows/logic/jwt-decode/) JSON Web Tokens. I believe those nodes will make it possible to complete the integration with Google Sheets.

I still hope to write this up as a blog post; we’re working on some other Google service integrations, and once we have those a little further along, I’ll take our learnings from there and apply them to your use case.

Thanks for your patience. If you feel like taking this on and have any questions about how the nodes work, feel free to reach out.

---

<div class="post-metadata">

**Author:** ![Andrew\_John](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Andrew\_John](https://forums.losant.com/u/Andrew_John)\
**Post date:** [February 9, 2018, 2:56pm UTC](https://forums.losant.com/t/export-import-data-from-google-sheets/581/8 "2018-02-09T14:56:56Z")

</div>

@Dylan_Schuster  
Hi Dylan

I am trying to work out how to do this as well

I am following the instructions here:  
[https://developers.google.com/identity/protocols/OAuth2ServiceAccount#makingrequest](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#makingrequest)

I am using the JWT Create Node with the following template:  
{  
“iss”:(my service account email),  
“aud”:“[https://www.googleapis.com/oauth2/v4/token](https://www.googleapis.com/oauth2/v4/token)”,  
“scope”:“[https://www.googleapis.com/auth/spreadsheets](https://www.googleapis.com/auth/spreadsheets)”  
}

My private key that i received from google is in the “Secret Template” and i have set the algorithm type to RS256.

The output from this feeds into the HTTP node which is set to POST to [https://www.googleapis.com/oauth2/v4/token](https://www.googleapis.com/oauth2/v4/token), the body is:  
{  
“grant\_type”:“urn:ietf:params:oauth:grant-type:jwt-bearer”,  
“assertion”:{{myJWT}}  
}  
In the header, Content-Type is set to application/x-www-form-urlencoded

When i try to run, i get an error back from google saying “unsupported\_grant\_type”.

I cant see what i have set wrong. Have you got any advice?

Thanks
