Category Archives: Outlook

Using “EWS Editor” to fix “Dynamics 365 App for Outlook” issues

This article describes how to use the EWS Editor for Dynamics 365 utility to resolve Dynamics 365 App for Outlook issues. This post is a continuation of my previous article where I listed several checks to fix deployment issues with the Dynamics Outlook App.

EWS Editor was originally created to demonstrate the capabilities of the Exchange Web Services API. EWS Editor for Dynamics 365 is based on that one to provide additional utilities and troubleshoot issues related to Server-Side Synchronization and the E-mail Router.

Because the Dynamics 365 App for Outlook relies on the Server-Side Synchronization, this utility becomes also useful to resolve issues with the Dynamics Outlook App. In our case, we were getting the following error:

ExchangeError:UnknownIncomingEmailIntegrationError

This happened to us when we enabled the Dynamics Outlook App in a different organisation. So the app for this user was first enabled in organisation A, then we needed to deactivate it in this org and add it in organisation B, but we started to get that error and we couldn’t deploy it in org B and it also stopped working in org A 😦 .

The following steps describe how we use this tool to finally fix the problem:

Step 1 – Download EWS Editor for Dynamics 365

Step 2 – Launch “EWSEditorForDynamics365.exe”

Step 3 – Connect to Exchange Service

ramontebar_blog_EWSEditor_Exchange Connection

ramontebar_blog_EWSEditor_Exchange Connection Authentication.png

Step 4 – Add Mailbox Root

ramontebar_blog_EWSEditor_Mailbox root dialog

ramontebar_blog_EWSEditor_Mailbox root folders

Step 5 – Connect to Dynamics 365 Service

ramontebar_blog_EWSEditor_Connect to Dynamics 365 Service

Step 6 – Open All Items

Expand MsgFolderRoot and select Allitems by double clicking it.

Step 7 – Show To-Be Tracked Items

Navigate to View => Filter View Items => Show To-Be Tracked Items

ramontebar_blog_EWSEditor_Show To-Be Track Items

Step 8 – Check that crmLinkState is set to 1

Exchange Items (email, tasks, contacts, appointments) that have been tracked in Dynamics will have some additional properties to define the link between the systems. One of those properties is crmLinkState, which should have one of these values:

0 – Item is not tracked

1 – Item To-Be tracked

2 – Item has been tracked

ramontebar_blog_EWSEditor_crmLinkState

Step 9 – Hard Delete* all items to be tracked (pending tracking) where crmLinkState is 1

Right click on each item and navigate to Delete Item => Hard Delete

ramontebar_blog_EWSEditor_Hard Delete.png

*Please notice you may lose important information, so make sure you are ok deleting those emails or other items.

Step 10 (END!) – Enable the Mailbox again

  1. Now navigate to your Dynamics instance.
  2. Open the User mailbox and click on “Test and Enable Mailbox”.
  3. Check the Box “Sync items with exchange
  4. Wait till you receive the “Success” message for both emails and appointments.
  5. Once you receive the Success message, deploy/add the app again.
  6. This should resolve the issue.

If you want to learn more about the EWS Editor, check the following URL:

https://blogs.msdn.microsoft.com/mstehle/tag/EWSEditor/

**Credits: Thanks to my colleague Narendra for helping me to put this content together.

Advertisements

Dynamics 365 Outlook App button inactive

This article shows a scenario where the Dynamics 365 app button will be inactive, like grayed out, in the Outlook menu. This may be caused just because of the View Reading Pane configuration in your Outlook client.

ramontebar_blog_Dynamics Outlook App - Grayed out button

However, you may still see the button active when you create a new email or an appointment:

ramontebar_blog_Dynamics Outlook App - Appointment Active button

ramontebar_blog_Dynamics Outlook App - Email Active button

In Outlook, your View Reading Pane must be Right or Bottom for the button being active:

ramontebar_blog_Dynamics Outlook App - Reading Pane Right or Bottom

ramontebar_blog_Dynamics Outlook App - Reading Pane Off

Hope this helps.

Configurations notes:

This post is based on the following configuration:

  • Dynamics 365 Online Version: 8.2.1.411
  • Outlook 2013

Please notice there may be other reasons why this button could be inactive, see the following forum discussion.

 

 

Outlook freezes trying to search

My Outlook (2007) froze trying to search in any folder, even an empty one 😦

Problem:

Windows Search Service (Windows 7)

Event Log Error:

The plug-in in <Search.TripoliIndexer> cannot be initialized

Solution:

Start Windows Search Service (it was stopped, I don’t why 😦 ). However, I couldn’t do it straigh forward and first I had to set the value from 1 to 0 for the next registry entry :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search\SetupCompleted

After set that entry to 0, I tryied to start the service and it works fine. That entry automatically is set up to 1 again.

I hope it helps.

PS: My fount of inspiration was the next forum discussion:

http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/e286be80-ed7e-4026-b6b7-d512ff642db5