From bd419cd2dea5cd3806a3ee8d7b8a4fafdc806b28 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 29 Jul 2026 15:10:51 -0500 Subject: [PATCH] Website: update fallback talk to us meeting link (#50182) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Updated deliver-talk-to-us-form-submission to return a different Salesforce user ID if territory information could not be found. ## Summary by CodeRabbit * **Bug Fixes** * Updated the fallback “Talk to us” form submission contact-routing behavior when territory information is unavailable or returns an unexpected value, including changes to the default Calendly meeting link and related warning messaging. --- .../api/controllers/deliver-talk-to-us-form-submission.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/api/controllers/deliver-talk-to-us-form-submission.js b/website/api/controllers/deliver-talk-to-us-form-submission.js index f53156a7e3..577f3e0e49 100644 --- a/website/api/controllers/deliver-talk-to-us-form-submission.js +++ b/website/api/controllers/deliver-talk-to-us-form-submission.js @@ -148,8 +148,8 @@ Only include a key when you are confident of its value. Omit any key you are uns website: emailDomain, numberOfEmployees: numberOfEmployeesToUseForTerritoryLookup, }).tolerate((err)=>{ - sails.log.warn(`When a user submitted the "Talk to us" form, Salesforce territory information could not be found using the provided information. This user will be sent to the calendly link for the washingtonDc region. Full error: ${require('util').inspect(err)}`); - return '0054x0000086sOlAAI'; + sails.log.warn(`When a user submitted the "Talk to us" form, Salesforce territory information could not be found using the provided information. This user will be sent to the default "Talk to us" calendly link. Full error: ${require('util').inspect(err)}`); + return '0054x000005mpQmAAI'; }); let bookingUrlByUserId = { @@ -164,8 +164,8 @@ Only include a key when you are confident of its value. Omit any key you are uns let eventUrlForThisUsersTerritory = bookingUrlByUserId[territoryUserId]; if(!eventUrlForThisUsersTerritory) { // If the user ID returned by the helper is not one of the five expected values above, log a warning to alert us, and send the user to the washingtonDc calednly link. - sails.log.warn(`When looking up Salesforce territory information to route a user (email: ${emailAddress}) who submitted the "Talk to us" form to the correct meeting link, the user ID returned by the getTerritoryUserId helper (${territoryUserId}) did not match the hardcoded user IDs in the bookingUrlByUserId dictionary. This user will be sent to the callendly link for the washingtonDc region.`); - eventUrlForThisUsersTerritory = 'https://calendly.com/d/dzyz-tt7-yt8/talk-to-us'; + sails.log.warn(`When looking up Salesforce territory information to route a user (email: ${emailAddress}) who submitted the "Talk to us" form to the correct meeting link, the user ID returned by the getTerritoryUserId helper (${territoryUserId}) did not match the hardcoded user IDs in the bookingUrlByUserId dictionary. This user will be sent to the default "Talk to us" calendly link.`); + eventUrlForThisUsersTerritory = 'https://calendly.com/d/d3hw-r73-gt7/talk-to-us'; } return { icp: true,