Hello there. I’m new to expressions but learned much so far. I have an action that sends a pre-written email. For the email Body, I’ve figured out this expression to use so far:
However, in my data, not all PHONE columns always have a value. So, when a column is empty, it’s leaving blank areas in the email. Does anyone know if there is an expression that allows me to exclude a column when it is empty? Thanks in advance!
You will need to wrap EACH phone number with a conditional expression:
IF(ISNOTBLANK([N1 PHONE 1]), [N1 PHONE 1], "")
PRO TIP: If you were to separate these into a Names table and Phone Numbers table with a Name column linking them, you could then create an email body template to handle any size list of Names and Phone Numbers. The template would be something like this:
NOTE: this is just an example and most likely needs adjustment for your use case. For example, filtering can be applied to limit which names and/or phone number appear.
I am still new to this so I don’t quite understand what you mean by linking them and filtering them but I’ll look it up! My data is linked by a Google Sheet so all of my columns and tabs are pretty much set.