Skip to content

Commit

Permalink
Merge pull request #13 from mikermcneil/set-contact-source
Browse files Browse the repository at this point in the history
Update SF helpers to set contact source on new contact records
  • Loading branch information
eashaw authored Aug 19, 2024
2 parents 8bd4ddb + cf6e85c commit 57b4da3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module.exports = {
organization,
linkedinUrl,
primaryBuyingSituation,
leadSource,
psychologicalStage,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 57b4da3

Please sign in to comment.