Conversation Capture for MS Exchange
Prerequisites
You need to have access to your Exchange Admin Center (https://admin.exchange.microsoft.com)
Enable "Roll up activities to a contact's primary account" in Salesforce (Feature Settings > Sales > Activity Settings)
Enable "Allow Users to Relate Multiple Contacts to Tasks and Events" in Salesforce (Feature Settings > Sales > Activity Settings)
Create an Email Service (in Salesforce)
In Salesforce go to Setup and find "Email Services" (Setup > Custom Code >Email Services).
Create a new Email Service and fill out these fields:
Email Service Name: Goldie_Activity_Sync (important to use exactly this name)
Apex Class: AbSfSyncHandler
Accept Attachments: All
Advanced Email Security Settings: unchecked
Accept Email From: leave this field blank
Convert Text Attachments: unchecked
Active: checked
Leave all other fields as they are ("Discard Message")
Enable error routing: checked
Route Error Emails to This Email Address: put support@goldie.ai or any other email address that should be informed if errors occur
Hit "Save" which takes you back to the newly created EmailService's overview page
At the bottom of the page click "New Email Address"
On the Email Service Address page populate these fields:
Email Address Name: Goldie_Activity_Sync (important to use exactly this name)
Email Address: Goldie_Activity_Sync (important to use exactly this name)
Active: checked
Context User: ideally, pick a service user account with ModifyAllData permissions; if you don't have a service user account, select a user with with ModifyAllData permissions (typically a Sys Admin)
Accept Email From: leave this field blank
Hit "Save"
Setting Up Goldie Activity Sync (in Exchange Admin Center)
Open the Goldie Setup page in Salesforce
The link to the Setup page has the form https://<mydomain>.lightning.force.com/apex/absf__AbsfSetup
Click the button "Copy email address to clipboard"
In the Exchange Admin Center navigate to Mail flow > Rules (or click here).
In the Rules page click the button "+ Add rule" and select "New rule" in the menu.
In the modal "New transport rule" put "Goldie Sync - External Recipients"
In the row "Apply this rule if" configure "The recipient" | "is external/internal" | "Outside the organization"
In the row "Do the following" configure "Add recipients" | "to the Bcc box" and in the "Select member" modal paste the email address from step 2.
Don't modify the "Except if" section and click "Next".
Don't modify anything in "Set rule settings" and click "Next".
In the "Review and finish" modal click "Finish" and "Done" after the rule was established.
Duplicate the first rule and modify:
Name the rule "Goldie Sync - External Sender"
In the row "Apply this rule if" configure "The sender" | "is external/internal" | "Outside the organization".
You have now two ruled defined but both are disabled by default. Therefore click on each rule ad switch the Disabled button in the side panel to Enabled.
IMPORTANT: the rule "Goldie Sync - External Recipients" must have a higher priority than "Goldie Sync - External Sender". Otherwise duplicate records might be created in Salesforce.
Testing Goldie Activity Sync
Find a test account in Salesforce that has a contact and an open opportunity.
Send an email to the contact (but don't add any other recipients to the email).
Important: the subject line must start with "testing Goldie", otherwise you will have to wait for up to 10 minutes for the email to be synced.
Your email should be displayed in the opportunity's, the contact's and the account's activity history a few seconds later.
If you have access to the contact's email inbox, reply to the email you just sent.
The reply should be displayed in the opportunity's, the contact's and the account's activity history.
Notice: Regular email and calendar events are synced every 10 minutes.
Notice: The user that is configured as context user of the Salesforce email service address (described above) cannot be deactivated without selecting a different user as the context user first.