Help

Connecting new data on linked entries

Topic Labels: Base design
574 4
cancel
Showing results for 
Search instead for 
Did you mean: 
artichokejoe
5 - Automation Enthusiast
5 - Automation Enthusiast

I want to create a form that users can fill out to enter an awards. 

When they fill out the form, if their company or contact details already exist on the 'companies' or 'contacts' tables, I want them to be able to select this when they search. 

If their company or contact details do not exist, I want them to be able to enter their details so their company and contact details are entered on to the 'companies' and 'contacts' tables. 

This I can do. However, on the 'contacts' tables, all contact names are linked to a company on the 'companies' table, and vice versa. 

On the '2024 entries' table, if you enter a new 'contact name' this gets added to the 'contacts table'. If you enter a new 'company' this gets added to the 'companies' table. However, the contact name is then not associated with the company name on the 'companies' table, and the company is not associated with the contact name on the 'contacts' table. 

Is there a way to have it so when using the form to enter data on the '2024 entries' table, and entering new data into the contact name and company fields, the contact name and company automatically become linked on the 'contacts' and 'companies' tables?

artichokejoe_0-1723561293302.png

Hope someone can help.

 

4 Replies 4
Alyssa_Buchthal
8 - Airtable Astronomer
8 - Airtable Astronomer

You'd probably benefit from an automation that, when a new form is submitted, checks if the associated contact and company are linked, and if not, links them. You won't be able to do it from directly in the form.

artichokejoe
5 - Automation Enthusiast
5 - Automation Enthusiast

Thanks, Alyssa. Appreciate it. If you or anyone else has an example of how to set up an automation like that I'd be grateful. 

Trigger would be "when a new form submitted".

Then do a find record step, using the linked contact record id from the form submission and searching in the contacts table.

Then a conditional logic, if the contact is not linked to the company.

Then an update record step, linking it to the company. 

There'll be some additional questions to ask yourself in here, i.e. what if the contact is already linked to a different company? Can they be linked to two, or just one, and how would you enforce this in form submissions? But at a base level, that should accomplish it for you.

artichokejoe
5 - Automation Enthusiast
5 - Automation Enthusiast

Thank you. I'll have a play and see if I can get it to work.