Skip to content

Instantly share code, notes, and snippets.

View hendrikjap's full-sized avatar

Hendrik Jap hendrikjap

View GitHub Profile
@justinsbarrett
justinsbarrett / markMatchingRecords.js
Created November 16, 2021 19:03
Mark matching records between two tables in Airtable.
const settings = input.config({
title: "Mark Matching Records",
description: `Searches an incoming data table for records matching those in a \"master\" table.
Any matching records are marked via a checkbox field.`,
items: [
input.config.table("masterTable", {
label: "Master table",
description: "The table containing the master list."
}),
input.config.field("masterField", {
@theomichel
theomichel / backlinks.js
Last active July 14, 2022 04:53
This script attempts to automatically create back-links for an Airtable linked record that references the same table.
//Substitute "Orders" for table name which contains values
//on which you want to run the vlookup
let mainTable = base.getTable("Orders");
let mainTableRecords = await mainTable.selectRecordsAsync({fields:["Item.barcode"]});
//Substitute "Product" for table which contains range to search in
let lookupTable = base.getTable("Products");
let lookupRangeRecords = await lookupTable.selectRecordsAsync({fields:["Barcode"]});
//Replace "Item.barcode" with column name which has the values you want to look up
@on2air
on2air / same-table-backlinks.js
Last active June 14, 2024 03:53
Same Table Backlinks