From ab3f111d72e4292e3e61d93ab8b0b18285a21c65 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 6 May 2024 20:56:52 -0500 Subject: [PATCH] Update update-or-create-contact-and-account.js --- api/helpers/salesforce/update-or-create-contact-and-account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 760d1c6..cebf190 100644 --- a/api/helpers/salesforce/update-or-create-contact-and-account.js +++ b/api/helpers/salesforce/update-or-create-contact-and-account.js @@ -87,7 +87,7 @@ module.exports = { // 'LinkedIn_company_URL__c': enrichmentData.employer.linkedinCompanyPageUrl // TODO: if this information is not present on an existing account, nothing will be returned. }); // console.log(existingAccountRecord); - if(existingAccountRecord && salesforceAccountId !== '0054x00000735wDAAQ') { + if(existingAccountRecord && existingAccountRecord.OwnerId !== '0054x00000735wDAAQ') { // Store the ID of the Account record we found. salesforceAccountId = existingAccountRecord.Id; salesforceAccountOwnerId = existingAccountRecord.OwnerId;