Context
- We are running a query to identify appointments that are past 72 hrs and have not been closed/dispositioned
- For example, if I am sales agent that had an appointment scheduled with a prospect on October 1st, 2021 and the appointment status is "Open" this process should be kicking out an email to me (cc'ing my manager) and attaching the appropriate link or links (depending on how many appointments are outstanding)
- That query is being pulled daily at 7AM on a cumulative basis (i.e. duplicates will appears) via our 1st Zap from our Business Intelligence tool Periscope into a CSV format for Google Sheets to ingest
- Then a 2nd Zap is being used to curate the data in order to deliver an email (cc'ing the agent's manager) and notifying the agent of appointments that need to be dispositioned.
- After an agent dispositions their appointment, the next day they should no longer receive an email for that specific appointment
- The query will no longer flag/capture this appointment once it's been dispositioned but the appointment will continue to exist within the spreadsheet as I don't believe we have a process to update and remove items from the spreadsheet
Outcomes
- Desired Output
- I'm receiving emails like the one attached ("Desired Result of Appt. Reminder Trigger") that are triggering as expected (the correct appointment link is listed, no duplicate links are displaying and only 1 email is being sent per day per agent when the criteria is met (i.e. if no appointments meet the criteria for an agent then they should not receive a blank email)
- Unexpected Outcomes
- Simultaneously, we are receiving emails Issue_1 and Issue_2
- Issue_1
- Where there are emails being sent without an links
- The blank email is being sent out to the same agent several times (i.e. Rohit would have received the same blank email at least 20 times from the one process we ran)
- Issue 2
- Duplicate links are being sent in one email
- Issue_1
- Simultaneously, we are receiving emails Issue_1 and Issue_2