From ee1ee9590732c249918c3aa64d3f3f8100b4199f Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 19 Nov 2024 14:35:12 -0600 Subject: [PATCH] Website: Add account to website page view CRM records (#23956) Changes: - Updated the custom hook to set an `account` value on new Fleet website page view records created. --- website/api/hooks/custom/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/api/hooks/custom/index.js b/website/api/hooks/custom/index.js index 0c421415d2..1e6d150087 100644 --- a/website/api/hooks/custom/index.js +++ b/website/api/hooks/custom/index.js @@ -325,6 +325,7 @@ will be disabled and/or hidden in the UI. return await salesforceConnection.sobject('fleet_website_page_views__c') .create({ Contact__c: recordIds.salesforceContactId,// eslint-disable-line camelcase + Account__c: recordIds.salesforceAccountId,// eslint-disable-line camelcase Page_URL__c: `https://fleetdm.com${req.url}`,// eslint-disable-line camelcase Visited_on__c: nowOn,// eslint-disable-line camelcase Website_visit_reason__c: websiteVisitReason// eslint-disable-line camelcase