Skip to main content

update multiple records including upsert on linked fields


Forum|alt.badge.img+3

is there a way to update multiple records including upsert on linked records? 

 

// fld4nItZFaesqE3hi: 'Pet-Dose' is a linked record
chunk=[ { id: 'recDZL0CMwcu8nh0w', fields: { fld4nItZFaesqE3hi: 'Pet-Dose', fld6kqVwPYlYRsI73: 0.715 } }, { id: 'recoAcgIEbo0vXqRv', fields: { fld4nItZFaesqE3hi: 'Pet-Dose', fld6kqVwPYlYRsI73: 1 } }];
 //update records
        chunks.forEach(function (chunk) {
            airtable.base(baseID)('Artikel').update(chunk, {typecast:true}, function (err, records) {
                if (err) {
                    console.error(err);
                    return;
                }
             
            });
        });

 

0 replies

Be the first to reply!

Reply