Publish
Summary
Transfer contents of Dendron to a table on Airtable
Features
Idempotency
This pod will check if a note has already been exported and not duplicate already exported notes
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}
Quickstart
-
Create an Airtable table with fields (all fields are text fields)
DendronId Title Summary -
Run Configure Pod, select
airtable.publish
, and add the following configurationdest: workspace # eg. appGB8ES*** tableName: Novels apiKey: *** baseID: *** srcFieldMapping: {DendronId: id, Title : title, Summary: body}
-
Create the following notes in your vault
└── vault └── books.alchemist.md
-
Run Publish Pod and select
airtable.publish
. You should get the following results on AirtableDendronId Title Summary 07736d97-d45b Alchemist The Alchemist follows the journey of an Andalusian shepherd boy named Santiago. Believing a recurring dream to be prophetic, he asks a Gypsy fortune teller in the nearby town about its meaning
Backlinks