Hi Community!
I'm setting up an automation to remind users to update their records. So the idea is to send email reminders in 3, 6, 9 and 12 months since the last update.
I'm using an automation triggering by a formula field that simply calculates the number of months since the last update was made.
All good there!
However, some emails are invalid (user likely entered wrongly), so I'd like to avoid trigerring the 6-, 9- and 12-months reminders if the email is invalid.
My logic right now works like this:
- Triggers if months passed = 3 AND email is not checked as invalid
- Checks email as invalid
- Sends email
- Uncheck email as invalid
The idea is that if the email fails to send (step 3) then the process stops, step 4 never occurs, and the email invalid is left checked. This works nicely.
What doesn't work is if the email is sent! Because step 4 updates the "Invalid email" field, which is also in the trigger, it triggers the automation again and again and again. I had instances of sending 1000s of emails to the same recipient. So I want to avoid breaking someone else's inbox again 🙄
So, my questions are:
- Is there a way to flag an email as invalid while avoiding the logic entering a loop?
- Should I be concerned at flagging invalid emails at all? Or should I just don't care to receive errors at the 6-, 9-, 12-months marks?
Any help or insight would be greatly appreciated!