Datacake Docs
  • Welcome
  • Get Started
  • Changelog
  • Best practices
    • Best practices: Getting started
    • Best practices: Resolution (Timeframe)
    • Best practices: Dashboards
    • Best practices: Reports
    • Best practices: Grouping Devices
  • Datacake LNS
    • Getting Started
    • Gateways
      • Milesight LoRaWAN Gateway - UG6x
      • RAKwireless WisGate Edge Light 2
    • Devices
    • Add Devices without Gateway
  • Wireless IoT Hub
    • Overview
    • Datasheet
    • Getting Started
  • Device
    • Product
    • Configuration
    • Claiming
    • Historical Data
    • Database
      • Configuration Fields
      • Fields
        • Manual input
        • Field Roles
        • Formulas
        • Mapping Fields
      • Data retention & Datapoints
      • Examples
        • Mapping 4-20mA Signals
        • Converting Units
  • Dashboards
    • Global Dashboards
      • Setting Homepage
    • Device Dashboards
    • Multi-Device Dashboards
    • Widgets
      • Value Widget
      • Chart Widget
      • Image Map
      • Map Widget
      • Text Widget
      • SOS Widget
      • Boolean Widget
      • iFrame Widget
      • Downlink Widget
      • Set Value Widget
      • Measurement List Widget
      • Heatmap Widget
      • Table Widget
      • Image Widget
  • Portal
    • Multi-Tenancy (Workspaces)
    • Reports
      • Energy Report
    • Administrators
    • Members
      • API Users
    • Security & Privacy
    • Billing
      • Support Packages
      • VAT Exemption / Tax ID
      • SMS Credits
      • Access Invoices
      • Unused time and Remaining time in Invoices (Prorations)
      • Codes
    • White Label
    • Rules
      • Legacy Rule Engine
        • Sending notifications via Telegram
      • New Rule Engine
        • Rule Engine Table Overview
        • Copy/Paste and Template Functionality
        • Advanced Rule Engine E-Mail and Webhook Templates
        • Time Restrictions
        • Actions
          • Set Value
    • Zones
  • Cake Red
    • Get Started
    • Overview
  • LoRaWAN
    • Get Started
      • CSV Import
      • Custom LoRaWAN Device
        • How to create a device without a product template
    • Configuring LNS
      • The Things Stack (TTN / TTI) Automated Setup
      • The Things Stack (TTN / TTI) Manual Setup
      • Loriot
      • Kerlink Wanesy
      • Helium
      • ChirpStack
      • Tektelic
      • Actility ThingPark
      • Senet
      • Milesight Gateway
      • KPN
    • Downlinks (LoRaWAN)
      • Set Time Frame
    • Securing Webhooks
    • Payload Decoders
      • Location and GPS
      • Access Gateway Metadata
      • Access Measurements
      • Global Variables
    • Using Cayenne LPP
    • Converting Payload
  • Generic API Devices
    • HTTP Downlinks
  • Integrations
    • MQTT
    • Particle
      • Get Started
      • Adding Integrations
      • Decoding Payloads
      • Calling Functions
      • Templates
        • Particle Tracker One
    • Incoming Webhooks
    • Outgoing Webhooks
      • Securing Outgoing Webhooks in Datacake
    • Golioth
    • Blues Wireless Notecard
    • Sigfox
    • Swarm Asset Tracker
    • Grandcentrix Modbus Cloud Connect
    • YuDash LYNX IoT Gateway
    • Dragino NB-IoT
      • Changing NB-IoT Bands
    • Hardwario CHESTER
    • 1NCE OS
  • API
    • Exporting Data
    • Record Measurements via API
    • Node RED to Datacake
    • Generate Access Token
    • Internal MQTT
      • Get Started
      • MQTT Documentation
      • MQTT over WebSocket
      • Example Code
    • GraphQL API
      • Using GraphQL
      • Device Creation
      • Tutorials
        • Read Group via Tags
  • Guides
    • Python
    • Send Slack Notifications
    • Forward Data to Cake Red
    • Multiple Data Feeds
    • Automated Dynamic Downlinks
    • Ingesting JSON Data into Datacake API Devices
    • Working with Default HTTP Decoder on API Devices and Code Examples
    • Accessing Measurements in Decoders
    • Connecting Datacake to Notion Using Zapier
    • How to set up and use location on non-GPS devices
    • How to integrate with AWS IoT Core
    • How to Schedule Mass-Downlinks (Multicast) using Datacake Rule Engine
    • How to Map Sensor Values to Ranges or Booleans, Strings using Mapping Fields
    • Understanding Internal vs. External MQTT Brokers on Datacake
    • Sending UDP Messages between 1NCE OS and Datacake
    • Concepts of LoRaWAN Payload Decoders on Datacake
    • How to check if a value stays above or below limits for given time
Powered by GitBook
On this page
  • About
  • Prerequisites
  • Step-by-Step Guide
  • 1. Setting up a New Rule on Datacake
  • 2. Define Triggers
  • 3. Set Webhook as the Action
  • 4. Create a Zap in Zapier
  • 5. Link Datacake to Zapier
  • 6. Configure the JSON Payload on Datacake
  • 7. Test the Webhook
  • 8. Connect Notion to Zapier
  • 9. Prepare Notion Database
  • 10. Map Datacake JSON to Notion Columns
  • Final Result

Was this helpful?

  1. Guides

Connecting Datacake to Notion Using Zapier

Learn how to write IoT sensor data to a Notion table using Datacake Rule Engine and Zapier Webhook automation.

Last updated 1 year ago

Was this helpful?

About

Integration between tools can streamline your workflow and enhance the functionality of each platform. In this guide, we will walk through the process of connecting to Notion via Zapier. This can be particularly useful for:

  • Generating custom reports

  • Establishing audit logs

Prerequisites

Before you begin, ensure you have the following:

Step-by-Step Guide

1. Setting up a New Rule on Datacake

  • Start on Datacake: Navigate to the rule engine section and click on the option to create a new rule.

2. Define Triggers

You can determine when this rule will be executed based on certain conditions or at specified time intervals:

  • For Time-Based Triggers: This is ideal if you're looking to generate periodic reports in Notion. Simply define the specific time intervals when you want the rule to run.

  • For Conditional Triggers: Set specific conditions in your data that will trigger the rule. This can be useful if you want to use Notion as an Audit Log platform.

3. Set Webhook as the Action

  • In the Action section of your rule settings, select "Webhook".

  • Datacake will ask you for a Webhook URL which you need to create on Zapier. We will show you how to do this in the next step.

4. Create a Zap in Zapier

  • Log into Zapier: If you’re not already a member, create a new Zapier account.

  • Set Webhook as Trigger: Once logged in, create a new Zap and choose "Webhook" as the trigger.

5. Link Datacake to Zapier

  • Copy Zapier's Webhook URL: Zapier will generate a unique Webhook URL. Copy this URL.

  • Paste into Datacake: Go back to the Webhook Action in your Datacake rule settings and paste the URL provided by Zapier.

6. Configure the JSON Payload on Datacake

Define the structure of the data you wish to send from Datacake:

  • Customize and set up the JSON payload in Datacake so it matches the data format you want to push to Notion.

Code Example

The following code shows a basic structure idea for the JSON you send over your Webhook.

{
    "ruleId": "{{ rule["id"] }}",
    "deviceId": "{{ triggering_device["id"] }}",
    "name": "{{ triggering_device["name"] }}",
    "temperature": "{{ triggering_device["measurements"]["TEMPERATURE"] | round(2) }}",
    "humidity": "{{ triggering_device["measurements"]["HUMIDITY"] | round(2) }}",
    "pm10": "{{ triggering_device["measurements"]["PM10"] | round(2) }}"
}

7. Test the Webhook

  • On Zapier: Click on "Start Test", ensuring Zapier is ready to receive the data.

  • On Datacake: Send a test data using the webhook.

  • On Zapier: Click on "Find new records" to see incoming webhook data.

Once successful, Zapier will acknowledge the received data.

8. Connect Notion to Zapier

  • In the subsequent step on Zapier, connect your Notion account. Follow the authentication process to grant Zapier permission to access your Notion data.

9. Prepare Notion Database

  • In Notion: Ensure the page and database you want to send the data to is set up. Also, make sure you pre-create the required columns for data reception.

10. Map Datacake JSON to Notion Columns

  • Back in Zapier: For each piece of data in your JSON payload from Datacake, bind them to the corresponding columns you've set up in Notion.

Final Result

You've now successfully connected Datacake to Notion via Zapier.

This integration enables your data to flow seamlessly between platforms, allowing for enhanced reporting and logging capabilities. Make sure to monitor your first few data transfers to ensure everything is functioning as expected. Happy integrating!

An active account.

An active account.

A account (or create a new one if you haven’t used Zapier before).

Datacake
Notion
Zapier
Datacake