PROBLEM STATEMENT
I have three tables in Coda:
-
DB: Client Testers (USERS)
- Key columns:
- Partner (text or lookup)
- Client Tester Email (text or email)
- Button (to generate rows in another table)
- Key columns:
-
DB: B2B Nudges by Partner (TEMPLATE OF KEY TASKS EACH TESTER NEEDS TO DO)
- Key columns:
- Partner (text or lookup)
- Workstream
- Task (single-value, not multi-select)
- Other “Nudge” details
- Key columns:
-
DB: B2B Nudges To Send (ALL TASKS THE TESTERS NEED TO DO BASED ON THE 2 TABLES ABOVE)
- Key columns:
- Client Tester Email
- Task
- Other columns to be auto-populated or manually added
- Key columns:
GOAL
From each row in DB: Client Testers, I want to create a row in DB: B2B Nudges To Send for every matching Task in DB: B2B Nudges by Partner. The match is based on the Partner in Client Testers and B2B Nudges by Partner. Specifically:
- The Button in DB: Client Testers, when clicked, should loop over DB: B2B Nudges by Partner rows where Partner = thisRow.Partner.
- For each matching row (i.e. each Task), create a new row in DB: B2B Nudges To Send, copying over:
- The Task from DB: B2B Nudges by Partner.
- The Client Tester Email from DB: Client Testers.
WHAT I TRIED
I used a formula similar to this:
[DB: B2B Nudges by Partner]
.Filter(Partner = thisRow.Partner)
.Task
.FormulaMap(
CurrentValue,
AddRow(
[DB: B2B Nudges To Send],
[DB: B2B Nudges To Send].Task, CurrentValue,
[DB: B2B Nudges To Send].[Client Tester Email], thisRow.[Client Tester Email]
)
)
But I keep encountering errors like “FormulaMap only takes 2 arguments” or the action simply does nothing. I have checked for extra commas and spelling issues, but it still is not populating DB: B2B Nudges To Send as expected.