From cf6e85ca56450b76a181c20a1d8c46cc11e53987 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 19 Aug 2024 15:26:37 -0500 Subject: [PATCH] set contact source --- .../update-or-create-contact-and-account-and-create-lead.js | 1 + api/helpers/salesforce/update-or-create-contact-and-account.js | 2 +- .../salesforce/update-or-create-enriched-contact-and-account.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/helpers/salesforce/update-or-create-contact-and-account-and-create-lead.js b/api/helpers/salesforce/update-or-create-contact-and-account-and-create-lead.js index 80c3d7b..0809c29 100644 --- a/api/helpers/salesforce/update-or-create-contact-and-account-and-create-lead.js +++ b/api/helpers/salesforce/update-or-create-contact-and-account-and-create-lead.js @@ -67,6 +67,7 @@ module.exports = { organization, linkedinUrl, primaryBuyingSituation, + leadSource, psychologicalStage, }); diff --git a/api/helpers/salesforce/update-or-create-contact-and-account.js b/api/helpers/salesforce/update-or-create-contact-and-account.js index 0e4fffe..29b0930 100644 --- a/api/helpers/salesforce/update-or-create-contact-and-account.js +++ b/api/helpers/salesforce/update-or-create-contact-and-account.js @@ -187,7 +187,7 @@ module.exports = { // Only add leadSource to valuesToSet if we're creating a new contact record. if(leadSource) { - valuesToSet.LeadSource = leadSource; + valuesToSet.Contact_source__c = leadSource;// eslint-disable-line camelcase } // console.log(`creating new Contact record.`) // Create a new Contact record for this person. diff --git a/api/helpers/salesforce/update-or-create-enriched-contact-and-account.js b/api/helpers/salesforce/update-or-create-enriched-contact-and-account.js index ef900fd..4390ea2 100644 --- a/api/helpers/salesforce/update-or-create-enriched-contact-and-account.js +++ b/api/helpers/salesforce/update-or-create-enriched-contact-and-account.js @@ -182,7 +182,7 @@ module.exports = { // Only add leadSource to valuesToSet if we're creating a new contact record. if(leadSource) { - valuesToSet.LeadSource = leadSource; + valuesToSet.Contact_source__c = leadSource;// eslint-disable-line camelcase } // console.log(`creating new Contact record.`) // Create a new Contact record for this person.