mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Website: Update Salesforce helepr to set an an Owner ID on all new records. (#19609)
Changes: - Updated the update-or-create-contact-and-account helper to always set the integrations admin user as the owner of new accounts and contact records created.
This commit is contained in:
parent
518e5f4087
commit
1fac823fa9
1 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ module.exports = {
|
|||
} else {
|
||||
// If no existing account record was found, create a new one.
|
||||
// Create a timestamp to use for the new account's assigned date.
|
||||
salesforceAccountOwnerId = '0054x00000735wDAAQ';// « "Integrations admin" user.
|
||||
let today = new Date();
|
||||
let nowOn = today.toISOString().replace('Z', '+0000');
|
||||
|
||||
|
|
@ -117,6 +118,7 @@ module.exports = {
|
|||
Website: enrichmentData.employer.emailDomain,
|
||||
LinkedIn_company_URL__c: enrichmentData.employer.linkedinCompanyPageUrl,// eslint-disable-line camelcase
|
||||
NumberOfEmployees: enrichmentData.employer.numberOfEmployees,
|
||||
OwnerId: salesforceAccountOwnerId
|
||||
});
|
||||
salesforceAccountId = newAccountRecord.id;
|
||||
}//fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue