This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {id,name} = input.config() | |
//get table from base | |
const tblPipeline = base.getTable("📚 Content pipeline") | |
//get records from table | |
const pipelineRecordsQuery = await tblPipeline.selectRecordsAsync() | |
const pipelineRecords = pipelineRecordsQuery.records | |
//find matching record based on matching id from input and source_id in table | |
let match = pipelineRecords.find( record => record.getCellValueAsString("Source ID") === id ) |
OlderNewer