Website: update fallback talk to us meeting link (#50182)
Changes: - Updated deliver-talk-to-us-form-submission to return a different Salesforce user ID if territory information could not be found. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user