Docs

Actions

Zapier actions

Tutorial

You can watch this video to learn how to set up Zapier actions from Dataland:

The video references some below code that you can copy and paste for your use:

Supporting code for tutorial

Replace the authToken, workspace_id, and table_id with the right variables.

// this is wrapped in an `async` function
// you can use await throughout the function
const response = await fetch("https://resnapshot-table.software-4de.workers.dev/", {
  method: "POST",
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    auth_token: "",
    workspace_id: 0,
    table_id: 0
  })
})

output = await response.json()

To generate auth_token (see video at 11:50 mark for walkthrough)

  1. Open app.dataland.io to your workspace.
  2. Open Chrome Developer Tools (right click on the page, > Inspect > then click Console)
  3. In the console tab, run this code: await window.Clerk.session.getToken({template: 'long_lived_action_token'})
  4. Copy the results back

To find workspace_id and table_id (see video at 12:24 for walkthrough)

  1. In Dataland, open the table you want Zapier to refresh
  2. Click on the table name, and click Diagnostics
  3. You'll see workspace_id and table_id -- copy those and put them back into the Zapier code.