Help

update multiple records including upsert on linked fields

Topic Labels: API
703 0
cancel
Showing results for 
Search instead for 
Did you mean: 
andreas83
4 - Data Explorer
4 - Data Explorer

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 0