
You can set up exchange to let your users sink Microsoft, contacts and events with Salesforce using lightning sync. This video shows you how to set up a service account on your Microsoft Exchange server from the command line, so that your server can communicate with Salesforce. This process works for companies running exchange, 2013 exchange 2016 or office 365. In this, video well demonstrate setup on office 365, the setup from a command. Shell is nearly the same on any of those versions of exchange.
Before you begin make sure you’ve already created a new mailbox in exchange to be the service account for lightning sync, then we’ll walk you through these steps. First, we’ll give that service account impersonation privileges for the users who you want to be able to sync we’ll do this from a command shell like Exchange Management, shell or PowerShell, then we’ll test what we’ve set up so far. Let’S get started, giving your service account impersonation privileges for the users who you want to sync I’ve already connected to my office 365 account from PowerShell exchange on Prem users can also use Exchange Management shell to complete this next step. I’Ve also prepared the commands. I need ahead of time so that I can just copy and paste them into PowerShell.
You can find examples of the commands you need in the Salesforce help commands are slightly different, depending on the version of exchange you’re working from. Let’S take a look at the commands for exchange 2013 and exchange 2016. Here we have four commands. The commands in black type are standard, you’ll replace the colored type with text. That’S specific to your setup.
For example, the service account address that you, created ahead of time, will be found in these commands in the following three places. You’Ll also create a management scope to limit which users can sync give that a name like Salesforce scope, you’ll, add it here and here then call out a filter for your scope. You can use any criteria you like, for example, if you want only your sales users to sync with lightning sync use a filter that pulls in your sales department. In our example that looks like this. If you want to create a scope that includes only one user, maybe for testing purposes, you can enter a filter that says alias equals Mathew in quotation marks.
Lastly, give a name to the management role assignment you’re, creating, for example, we used Salesforce role assignment if you’re working from office 365 you’ll use some of the same commands we just discussed and one additional command. These commands are the same as we described a moment ago. One command is different: let’s continue. Setting up the office 365 service account copy. This command head back to powershell and paste it there now, in our example, we’re seeing a message confirming that this setting is already enabled on office 365.
So we didn’t need to take that step. However, that might not be the case for everyone, so we encourage you to confirm that it’s enabled now, let’s copy and paste the last two commands to complete this part of the setup process. Okay, now we’re ready to test that we’ve set up a connection between Exchange and Salesforce to run the Microsoft remote connectivity analyzer, let’s open a browser and go to test connectivity, Microsoft comm before we start testing wait at least five minutes after you set up your service Account otherwise, you could see a failed connection test, even though you may have set up the connection correctly. Let’S test that the service account that you set up on office 365 is successfully impersonating on the exchange. Server tab select service account access developers.
Click Next enter these parameters carefully. A mistake could result in inaccurate test results. The service account you set up can impersonate any of your users in the scope that you set up in the command shell type. The email address for one of your exchange users, type the username and password for the service – account that you created and gave impersonation privileges to leave, use, autodiscover and test predefined. Folder selected choose calendar or contacts because lightning sync can sync those select use, exchange impersonation and for impersonated user type.
The same email address as you did for target mailbox, do not put the service account down there select I understand and if prompted enter the verification text. Now perform the test. This can take three seconds. You can take a little over 30 seconds depending on various details when the test is complete. You’Ll get a report on how the connection performed here it shows the test was successful, with warnings, warnings are acceptable and don’t necessarily mean that there’s a problem with your service account setup.
The most important thing is that you get a successful report rather than a failed one. So how do you know whether you should be concerned about the test warnings? Let’S expand all scroll down to the bottom of your report? Ultimately, we want to see that for the user we tested Matthew, a new mail item was created and then deleted that verifies that the service account was able to impersonate Matthew correctly. Now that you’ve set up and tested your exchange service account, your Salesforce admin can use.
The service account credentials to finish. Setting up lightning sync from Salesforce for complete details about setting up lightning sync for exchange, see the following topic in the salesforce help or visit the salesforce success community at success.salesforce.com, thanks for using salesforce
Read More: Exchange Vs Office 365