Closed sommmen closed 7 months ago
When you need AirtableRecord[] to use with upsert and you need to obtain an AirtableRecord or AirtableRecord
When upserting is enabled, the id property of records becomes optional. Records that do not include id will use the fields chosen by fieldsToMergeOn as an external ID to match with existing records. I updated the doc to clarify it.
Hiya,
I had some trouble figuring out the right way to upsert. There is no way AFAIK to manually create an
AirtableRecord
orAirtableRecord<T>
so i can use it withUpdateMultipleRecords(..., AirtableRecord[] records, ...)
,.It seems you need to use the
IdField
class without setting an id. Perhaps we can add a sample to the docs?Ex. method, has some bloat to support poco.