1. Home
  2. Kennisbank
  3. Officebooking inrichten
  4. Integraties
  5. Microsoft Exchange – Meeting room sync (on premise)

Microsoft Exchange – Meeting room sync (on premise)

The Officebooking platform enables you to share your company resources and make them available for booking by your users or employees. We support a number of interaction or touch points for end users including web, mobile and interactive signage solutions. This way your users are supported throughout their complete journey.

This guide will walk you through the process to set up synchronization with on premise Microsoft Exchange 2013 or Exchange 2016 server installations. Please check our Office 365 integration guide for Office 365 integration only.

 

Step 1: Access to OfficeAdmin and Exchange environment

This guide assumes someone in your organization (or Officebooking Support) has already created an Admin account for you. This account will give you access to the OfficeAdmin portal.

Next, you’ll need administrative access to your company Exchange environment. Once you’ve gained access to both environments you can start implementing the integration.

 

Step 2: Add resource mailboxes for rooms you want to synchronize (Microsoft admin center)

  1. Log in to your Exchange admin center with your Exchange administrator credentials.
  2. In the main menu, select ‘Recipients’, then select ‘Resources’.
  3. Select ‘+ Add resource’ and enter resource specific information. The minimum required information per room is the name and the email address of the room. Enter the details for example: name = Boardroom I, email address = boardroom369@wilderman.nl, location = Puntegaal (name of your workspace) and room capacity = 8.
    Pay special attention to the email address of the room. The domain (in our example @wilderman.nl) is already pre filled by Exchange. The part before the @-symbol needs to be unique for the room and is used for synchronization purposes. We use the email address as a unique identifier. Make a note of this unique email address, as you will be required to add this to the Officebooking platform later in the next step. Make sure the option ‘Accept or decline booking requests automatically’ is selected.
  4. After selecting the ‘More options’ button you also have the option to assign a user friendly alias for the room in addition to the more formal name “Boardroom I”. Users will be also able to search in Exchange on this alias.
  5. Enter the Room mailbox details.
  6. Save your changes and move to the next step.

 

Step 3: Create a new service account

You’ll need to have Exchange Web Services (EWS) component available. This is standard for Microsoft Exchange 2013 and most other Exchange versions too. We use EWS to integrate with our Officebooking platform.

  1. First step is to create user credentials on your Exchange server to log in to get access to this EWS service. For communication with your server we need to create a Officebooking service user account in your Exchange environment with delegate rights on all resources that need to be synchronized.
  2. Add a new generic exchange user and give it a name, for example ‘Officebooking Service Account’. Add a strong password according to your organization’s password policy. Make a note of these credentials. You will need them later to activate the synchronization service.

The format of the service account name should be something like this: Service_account@yourdomain.com or yourdomain\Service_account

 

Step 4: Give delegate access to the service account

The new service account user needs delegate access to the resources that are to be synchronized.

You may set delegation rights in the following manner:

  1. Go to Exchange Admin Center
  2. Select a resource and choose ‘Edit’.
  3. In the menu item ‘Delegates’ select ‘Select delegates who can accept or decline booking request’
  4. Add the service account (e.g. Officebooking) user, that you’ve just created in the previous step.
  5. When you’re done adding you delegate user, select the option ‘Accept or decline booking requests automatically’.
  6. Make sure you save the settings.

 

Step 5: Set up the correct title for bookings using PowerShell

By default, Exchange removes the title of a meeting in the subject line of the resource and display’s the organizers name. You can fix this by running a PowerShell command.

  1. Run PowerShell as an administrator and enter the following command:
    $UserCredential = Get-Credential
  2. Enter your login information in the dialog
  3. Insert your credentials you use to connect to Exchange environment:
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
    
    https://outlook.office365.com/powershell-liveid/
     # Please enter your remote Exchange server credentials here
    
    -Credential $UserCredential -Authentication Basic -AllowRedirection
    Set-ExecutionPolicy RemoteSigned
    
    # This opens a connection to your Exchange server with the credentials we just specified
    Import-PSSession $Session

    # You’re connected

Get-Mailbox -RecipientTypeDetails RoomMailbox | Set-CalendarProcessing -AddOrganizerToSubject $false -DeleteSubject $false -DeleteComments $false

For more information please check Microsoft documentation online:

Managing Office 365 and Exchange Online with Windows PowerShell

Connect to Exchange Online using remote PowerShell

 

Step 6: Activate synchronization in the OfficeAdmin

To activate the synchronization, you have to add the token to the OfficeAdmin portal.

  1. Login to the OfficeAdmin portal and go to the ‘Settings’ page in your menu. Open the tab ‘Integrations’ on the top of the page.
  2. Here you choose the ‘Exchange (EWS)’ option.
  3. Enter your EWS access URL, username and password for the Officebooking service account. The access URL will look something like ‘https://mail.[your company domain]/ews/Exchange.asmx’.
  4. Select ‘Save’.

 

Step 7: Connect an asset in Officebooking with the corresponding meeting room

  1. Go to ‘Assets’ page in the left menu of the OfficeAdmin.
  2. Search for the meeting room you want to connect. It can help to filter on the right category, for example ‘Meeting room’.
  3. Select the name of the asset and select ‘Edit’.
  4. Enter the Exchange email address.
  5. Now select ‘Save asset’ to finish connecting the asset.

 

Step 8: Start testing

It’s important to check if the user you’re testing with both exists in your Exchange environment and the Officebooking app for the synchronization to work properly. So please make sure that the user exists in both environments and has the same email address.

Single reservation from Outlook > Officebooking

  1. You may test the integration by creating a meeting in Outlook calendar and invite the room as an attendant.
  2. Check the confirmation from Outlook. If the room has been successfully added, it will take about 1 minute before the meeting appears in the Officebooking app.
  3. Now open the OfficeAdmin to check if the reservation has appeared.
  4. Select ‘Reservations’
  5. Select the tab ‘List’ at the top of the page.
  6. Select the date you’ve created your test reservation and check if the data is correct. 

Single reservation from Officebooking > Outlook

The same test can be executed the opposite way.

  1. Log in to the Officebooking app. In our example we use the web app (login.officebooking.net).
  2. Search for the asset that you want to make a test reservation for.
  3. Create the reservation in the app. You can see that the reservation is added to your personal reservations list on the ‘My Reservations’
  4. Now login to the calendar on Exchange as THE SAME USER.
  5. Check to see if the reservation for the meeting room (that you just made in the app) was added. Remember that there is a synchronization time interval.

 

Troubleshooting

I can’t access EWS on my mail server

Check the user credentials for the generic Officebooking service account. The username should be something like this: username@yourdomain.com or yourdomain\username. If the password seems to be incorrect, try resetting the password. Remember to check your URL. It should look like this: https://mail.yourdomain.com/ews/Exchange.asmx

I still have trouble connecting to my service account on Exchange? How can I test if it works?

Check connectivity using the Microsoft tool at https://testconnectivity.microsoft.com/. If you can successfully connect using this tool, you should have no trouble connecting to Officebooking.

  1. Open https://testconnectivity.microsoft.com/ in your browser.
  2. Select Microsoft Exchange Web Services Connectivity Tests and choose the option ‘Service account Access’.
  3. Enter the details of your service account and target resource mailbox (room).

I do not see the reservation I made (yet)

We synchronize every 3-6 minutes with your Exchange server using Exchange Web Services (EWS).
Check if the resource mail addresses are identical in both Exchange and Officebooking. Check if the settings of the resource are set to ‘bookable’.
Check if the users match. The users that create the reservation have to exist in both systems.

I activated the synchronization and now I receive cancellations, what’s wrong?

Check if the organizing user exists in both Officebooking and Exchange. If the users organizing a meeting (and booking a room), do not exist in BOTH systems (Officebooking AND Exchange), you can get cancellations. We are synchronizing after all! This typically only happens when you are migrating to a new exchange environment AND Officebooking account at the same time. Please make sure you added the relevant users to both environments first.

Heb je het antwoord op je vraag gevonden?

Gerelateerde artikelen

Ga naar de bovenkant