mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
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.
This commit is contained in:
parent
7b86f1ee6f
commit
ee1ee95907
1 changed files with 1 additions and 0 deletions
1
website/api/hooks/custom/index.js
vendored
1
website/api/hooks/custom/index.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue