Hello! I am new to Airtable and have been chugging along until now lol. I have done hours of research and received advice from a few people but I am still very much stuck.
I have a multi select field and I am trying to write a formula that takes the options in that field and replaces/substitutes them with values from other fields.
So let’s say my multi select field contains the following values:
Buyer
Agent
Closing Attorney
Closing Attorney Assistant
I want a formula that looks at each value and replaces each one with an email address from a lookup field.
‘Buyer’ would be {Buyer Email}
‘Agent’ would be {Agent Email}
‘Closing Attorney’ would be {Closing Attorney Email}’
‘Closing Attorney Assistant’ would be {Closing Attorney Assistant Email}
The email addresses would need to have commas separating them.
And if there is no email address in any of the lookup fields it would just ignore it.
For the missing comma thing, we’ll need to put an ARRAYJOIN() around the lookup field we’re displaying the emails from, so that it looks something like this: ARRAYJOIN({Buyer Email (from Buyer)})
This should solve that issue I think
Ahh, understood. Hmm, we could modify the formula so that it looks like the following?
FIND(
"Buyer,", {Multi Select} & ","
),
I’ve made the updates to the base linked above as well
Weird! Could I get a screenshot of the field(s) that contain the data buyerone@email.combuyeringtwo@email.com please? That’ll help me figure out what’s going on
Ah, yeah, that’s because the formula just looks for the word Buyer. Since the CC (from Email Templates) field contains Buyer Agent etc, and thus the word Buyer, it fulfils the condition and shows the buyer emails
I think the only way around this would be to make the text we’re looking for unique, so we would have to change Buyer to something that wouldn’t be found in your other options, maybe Buyer Primary, Buyer Client or some such
Is there any other way to tackle this one? It’s not as simple as renaming the Buyer field because this isn’t the only one that would display this behavior. I also have Lender / Lender Assistant, Closing Attorney / Closing Attorney Assistant, etc.
For the missing comma thing, we’ll need to put an ARRAYJOIN() around the lookup field we’re displaying the emails from, so that it looks something like this: ARRAYJOIN({Buyer Email (from Buyer)})
This should solve that issue I think
Ahh, understood. Hmm, we could modify the formula so that it looks like the following?
FIND(
"Buyer,", {Multi Select} & ","
),
I’ve made the updates to the base linked above as well