What am I doing wrong that the sync table options are not showing as nice GUI (text field, date picker, etc), but instead just a raw sync table formula:
Here’s my sync table definition:
pack.addSyncTable({
name: "Invoices",
identityName: "Invoice",
description: "All of your QBO Invoices",
schema: schemas.InvoiceSchema,
formula: {
name: "SyncInvoices",
description: "Sync all Invoices",
parameters: [
coda.makeParameter({
name: "CompanyId",
description: "Your company ID on QuickBooks",
type: coda.ParameterType.String,
}),
coda.makeParameter({
name: "DateRange",
description: "Only sync Invoices dated within this range",
type: coda.ParameterType.DateArray,
optional: true,
}),
],
execute: async function ([CompanyId, DateRange], context) {
return formulas.syncInvoices(context, CompanyId, DateRange);
},
},
});