Skip to content

Instantly share code, notes, and snippets.

@al-codaio
al-codaio / coda_one_way_sync_v2.js
Last active June 5, 2020 22:59
One-way data sync between Coda tables with delete
// Setup and global variables
CodaAPI.authenticate('TO UPDATE');
SOURCE_DOC_ID = 'TO UPDATE'
TARGET_DOC_ID = 'TO UPDATE'
TARGET_TABLE_SOURCE_ROW_COLUMN = 'Source Row URL';
/////////////////////// Define tables to sync between source and target docs below //////////////////////////////////
var TABLES = [
@al-codaio
al-codaio / coda_one_way_sync.js
Last active February 18, 2020 00:09
One-way data sync between Coda tables
CodaAPI.authenticate('abcd1234-efgh-5678-ijkl-1234mnop5678'); // Replace with your token.
SOURCE_TABLES = [
{
doc: 'TO UPDATE',
table: 'Source Table',
},
// Add more as needed.
];
TARGET_TABLE = {
0xfb27816c324bb208fe630f5272e95e2d7487e287