Omnivore

Share this post

Syncing all your notes to Google Sheets using IFTTT

blog.omnivore.app

Discover more from Omnivore

Updates from the Omnivore team
Over 3,000 subscribers
Continue reading
Sign in

Syncing all your notes to Google Sheets using IFTTT

Learn how to sync all your highlights and notes to Google Sheets using Omnivore's webhooks and IFTTT

Omnivore
Oct 17, 2022
5
Share this post

Syncing all your notes to Google Sheets using IFTTT

blog.omnivore.app
Share

This guide will teach you how to save Omnivore items into Google Sheets using an IFTTT webhook. In this guide we will save all URLs into Google Sheets, but using Omnivore’s webhooks you can also save highlights and notes with your URLs.

Screenshot of an IFTTT applet

Omnivore can trigger event hooks when you save a link, or create a highlight. This allows us to send that data to other services. IFTTT is an automation platform that can act as the glue between services. With a free IFTTT account, we can accept that incoming event data, and write it to a Google sheet.

Creating the IFTTT Applet

  1. Log into IFTTT and tap the Create button in the top right corner

  2. On the Create page, click Add in on the If This item

  1. Type Webhooks in the Search box and click the webhook item

  1. Choose Receive a web request with a JSON payload enter `page_saved` as the event name and click Create Trigger

  1. Click the Add button in the Then That item

  1. Search for Google Sheets and click the icon to add the service

  1. Choose the Add Row to Spreadsheet Action

  1. Enter your Google Account information, enter a name for the spreadsheet (note that the Action will create this file, you do not need to create it first).

  2. Enter the snippet below in the Formatted Row box

{{OccurredAt}} ||| {{EventName}} ||| ||| |||
  1. In the Drive Folder path box enter “IFTTT/MakerWebooks/{{EventName}}”

  2. Tap Create Action

  1. On the Create page, click the plus button between the If and Then items, then click Add Filter

  1. Paste this code snippet to create a row. This snippet will add a page_saved event’s URL and saved time to a row:

    let payload = JSON.parse(MakerWebhooks.jsonEvent.JsonPayload)
    let formattedRow = `${payload.page.savedAt}|||${payload.page.url}`
    
    GoogleSheets.appendToGoogleSpreadsheet.setFormattedRow(formattedRow)
  2. This will create rows in Google Sheets that look like this

  1. On the IFTTT Webhooks page, click the Documentation button

  1. Copy the provided URL, changing event_name to page_saved, you should now have a URL like “https://maker.ifttt.com/trigger/page_saved/json/with/key/<your key here>”

  2. Head to the Omnivore Webhooks page and click the Create button

  3. Enter the URL you copied and select PAGE_CREATED as the event type

  1. Save a new link to Omnivore

To better understand the data sent with webhook events, look at the IFTTT data under “Check the log of your Applet runs”. This will show logs of all the data sent.

5
Share this post

Syncing all your notes to Google Sheets using IFTTT

blog.omnivore.app
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Omnivore
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing