Skip to content

Author Archives: Marco Mels

Outlook Synchronization and preventing duplication of contacts, tasks, etc.

When a new contact is created in Dynamics NAV, you may want to synchronize that contact to Outlook. Sometimes it could happen that during the next synchronization attempt, this specific contact seems to duplicate somehow. This blog describe how this co…

Continue Reading: Outlook Synchronization and preventing duplication of contacts, tasks, etc. →

Outlook Synchronization and baseline implementation for Dynamics NAV 5.0 SP1 and Dynamics NAV 2009 SP1

Since the initial 5.0 release, so many patches were released by Microsoft that took care of Outlook Synchronization feature, that one could imagine that you are lost. This blog posting tells you what is required for Dynamics NAV 5.0 SP1 and Dynamics NA…

Continue Reading: Outlook Synchronization and baseline implementation for Dynamics NAV 5.0 SP1 and Dynamics NAV 2009 SP1 →

Outlook Synchronization and some core features of Terminal Server

At the moment we see an incoming volume of support cases regarding Outlook Synchronization and core features of Terminal Server. That would be a good subject for a new blog. Partners would like to setup roaming profiles, mandatory profiles and maybe ev…

Continue Reading: Outlook Synchronization and some core features of Terminal Server →

Retaining the Dynamics NAV 2009 SP1 Outlook Addin settings in a Terminal Server environment

With Dynamics NAV 2009 SP1, the Outlook Synch settings are no longer part of the IsolatedStorage but are now part of the Local Settings of the userprofile. This gives problems when implementing the solution on a Terminal Server. The Local Settings of a user profile do usually not roam. Especially when setting the GPO to delete the locally stored user profile, the settings are even no longer stored locally. The quick and dirty workaround is to implement a logoff and logon script that keeps the Outlook Addin settings up to date.

With Dynamics NAV 2009 SP1 running on Windows 7, the path to the Outlook Addin settings could be something like this:

  %userprofile%AppDataLocalMicrosoft Dynamics NAVOutlookSynch

This folder may contain the following files after a full synchronization was executed successfully:
EntryIdStorage.xml
LastSynchronizationTime.xml
NavisionSynchronizationEntity.xml
OutlookSynchronizationEntity.xml
Settings.xml
SynchronizationConflict.xml
SynchronizationEntityFilter.xml
SynchronizationError.xml
SynchronizationSchema.xml
SynchronizationSchemaString.xml

These files are unique to every single users. The files itself cannot be modified manually. With a single logoff script, you could easily copy these files from %userprofile%AppDataLocalMicrosoft Dynamics NAVOutlookSynch to a shared folder on the network. E.g.: \servernamesharenameOutlookSynch%username%

An example of such a logon script could look like this:

@echo off
GOTO BEGIN

:BEGIN
if not exist “%userprofile%Local SettingsApplication DataMicrosoft Dynamics NAVOutlookSynch” GOTO MKDIR
GOTO UPLOAD

:MKDIR
MKDIR “%USERPROFILE%Local SettingsApplication DataMicrosoft Dynamics NAVOutlookSynch”
GOTO UPLOAD

:UPLOAD
COPY “\servernamesharenameOutlookSynch%username%” “%userprofile%Local SettingsApplication DataMicrosoft Dynamics NAVOutlookSynch*.*”
GOTO END

:END

An example of such a logoff script could look like this:

Dim sOriginFolder, sDestinationFolder, sFile, oFSO
Set oFSO = CreateObject(“Scripting.FileSystemObject”)
Set objShell = CreateObject(“WScript.Shell”)
strUserProfile = objshell.ExpandEnvironmentStrings(“%userprofile%”)
strUserName= objshell.ExpandEnvironmentStrings(“%username%”)
sOriginFolder = strUserProfile & “Local SettingsApplication DataMicrosoft Dynamics NAVOutlookSynch”
sDestinationFolder = “\servernamesharenameOutlookSynch” & strUserName
For Each sFile In oFSO.GetFolder(sOriginFolder).Files
   oFSO.GetFile(sFile).Copy sDestinationFolder & “” & oFSO.GetFileName(sFile),True
Next
WScript.Echo “Copying of files succeeded”

There are of course other possibilities to explore here, but the basic idea is that those files are no longer part of the IsolatedStorage and therefore, a system implementer needs to manually ensure that these files roam along with the user profile.

Hope this helps.

Marco Mels

Microsoft Customer Service and Support (CSS) EMEA
These postings are provided “AS IS” with no warranties and confer no rights. You assume all risk for your use.

Continue Reading: Retaining the Dynamics NAV 2009 SP1 Outlook Addin settings in a Terminal Server environment →

Synchronizing Company contacts and Person contacts to one dedicated Contacts folder using a new Outlook Synch. Entity

There have been many requests for some weeks if it is possible to synchronize contacts of Company type and contacts of Person type in Dynamics NAV to one single folder in Outlook. The answer is: Yes, this is possible. The question is: How should we do …

Continue Reading: Synchronizing Company contacts and Person contacts to one dedicated Contacts folder using a new Outlook Synch. Entity →

Outlook Synchronization: working with conditions in several scenario’s

To limit the synchronized data and for simplicity reasons, we usually recommend to create conditions like the following:
mmels APP                  WHERE(Salesperson Code=C…

Continue Reading: Outlook Synchronization: working with conditions in several scenario’s →

Outlook Addin generates an error: This attendee already exists

There are two ways to create meetings in Outlook:1. directly from the Calendar folder2. directly from the Contact, right click on the contact, press Create and then select Meeting
The latter would open a new form where you can enter the required d…

Continue Reading: Outlook Addin generates an error: This attendee already exists →

Outlook Addin error: The related item for the synchronized Outlook item is not found in the specified folders. The following values were expected:.

When working with tasks and appointments, the following error could show up:
  The related item for the synchronized Outlook item is not found in the specified folders. The following values were expected:.
It took us a while to find out why this e…

Continue Reading: Outlook Addin error: The related item for the synchronized Outlook item is not found in the specified folders. The following values were expected:. →

Outlook Addin invisible or inactive with error in debug log Dump of exception type ‘System.IO.FileLoadException’

Sometimes the Outlook Addin, especially after a reinstall, becomes inactive or the Outlook Addin does not show up at all. The reason behind this is that the two below mentioned files have different build releases which causes t…

Continue Reading: Outlook Addin invisible or inactive with error in debug log Dump of exception type ‘System.IO.FileLoadException’ →