Common

Requirements

  • the table must exist in Airtable
  • all columns that you want to write to must exist in Airtable
  • you must have a column named DendronId (case sensitive)

Side Effects

  • this pod will add airtableId in the frontmatter of your note

Configuration

apiKey

Airtable api key

baseId

base ID of Airtable base.

tableName

name of resulting table.

srcFieldMapping

Mapping of Airtable fields with the note. This can either be a plain string or a dictionary that specifics additional properties. You can see the type definition below

type SrcFieldMapping =
  | {
      to?: string;
      type: "string" | "date" | "singleTag";
      filter?: string;
    }

In all cases, the key represents the name of the column in Airtable.

  • NOTE: the key must exist in Airtable before you are able to create a new value

string value

String value is the name of the field in Dendron. You can use any valid NoteProps (Private) as the value

srcFieldMapping: {Note ID : id, Title : title, Summary: body}

object value

  • to: the name of the field in Dendron
  • type: what type this field is on Airtable
    • string: regular string
    • date: will convert a unix time liked the updated prop in a Dendron note to an Airtable date
    • singleTag: creates a Single Select field on Airtable that is populated with Tags found in Dendron note
      • NOTE: Airtable does not let you create new values in single select via API. Make sure that all values exist or set the field as a string on Airtable before exporting and then convert back into a Single Select field
  • filter: used with type: singleTag, used to restrict what tags are parsed from Dendron
    • eg: {type: "singleTag", filter: "tags.foo.*"} -> this will add tags that start with #foo.* but will ignore all #bar.* tags


Backlinks