I'm using Coda for managing some databases and need help with automating a specific task (it can be using a button also). I have two tables:
- Table Companies, the main table, with two multi-select columns: "Product Type A" and "Product Type B". This will be the main table I will be using in the future.
- Table Products, where I want to gather all the features mentioned in the two columns "Product Type A" and "Product Type B", as the ID column (I did not create a relation directly because I need to have two different columns in table Companies to characterize in different ways each product, but want to have a complete list in the table Products).
What I need to do: Whenever a new option is added to either of the columns "Product Type A" and "Product Type B", I want to automatically add a new row to my "Products" table with the name of the new option, something that would follow this logic:
1. Trigger: Detect when a new option is added to the "Product Type A" and "Product Type B" columns in the "Companies" table.
2. Condition: Check if the new option is not already present in the "Products" table.
3. Action: Add a new row to the "Products" table with the name of the new option.
I've tried setting up an automation rule, but I'm having trouble with the formulae to check for new options and add them correctly. Any guidance on how to set this up would be greatly appreciated!
Thanks in advance!