A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Contacts
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How Outlook 2003 Stssync works



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 9th 06, 09:52 AM posted to microsoft.public.outlook.contacts
Pavel Shilov
external usenet poster
 
Posts: 4
Default How Outlook 2003 Stssync works

It’s seems to me that Outlook 2003 SP2 stssync synchronize changes in
SharePoint contact list only if I am located in SharePoint contact folder.
So I can mainly synchronize or wait for 20 min remaining on the WSS contact
folder. And stssync doesn’t work if I working in my Inbox folder.

Am I right?

Thanks.
Ads
  #2  
Old February 9th 06, 01:35 PM posted to microsoft.public.outlook.contacts
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How Outlook 2003 Stssync works

The background sync should kick in every 20 minutes, regardless of what folder you happen to be viewing at the time.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Pavel Shilov" wrote in message ...
It’s seems to me that Outlook 2003 SP2 stssync synchronize changes in
SharePoint contact list only if I am located in SharePoint contact folder.
So I can mainly synchronize or wait for 20 min remaining on the WSS contact
folder. And stssync doesn’t work if I working in my Inbox folder.

Am I right?

Thanks.

  #3  
Old February 13th 06, 09:06 AM posted to microsoft.public.outlook.contacts
Pavel Shilov
external usenet poster
 
Posts: 4
Default How Outlook 2003 Stssync works

Ok. But this means that the background sync doesn’t work in my environment.

Outlook 2003 SP2 (11.8002.6568)
SharePoint Portal Server 2003 SP1
Windows 2000 Domain Controller
Locale 1049

Where I’d start to find issue? May be I’d start from proxy settings, default
user credentials error, or alternate portal site URLs, SPN for application
pool identity.
May be Microsoft has hotfix?

Thanks.


"Sue Mosher [MVP-Outlook]" wrote:

The background sync should kick in every 20 minutes, regardless of what folder you happen to be viewing at the time.

--
Sue Mosher, Outlook MVP


  #4  
Old February 22nd 06, 01:39 PM posted to microsoft.public.outlook.contacts
Pavel Shilov
external usenet poster
 
Posts: 4
Default How to fix Stssync and automatically update contact list

Create VbaProject.OTM - VBA project for Outlook in C:\Documents and
Settings\%username%\Application Data\Microsoft\Outlook\

Open Outlook and press Alt+F11 to open VbaProject.OTM

Paste this code into ThisOutlookSession Startup event

================================================== ===
Private Sub Application_Startup()

' NAME: WSS StsSyncAddOn
'
' AUTHOR : Shilov Pavel
' DATE : 14.02.2006
' VERSION : 1.0.1
'
' COMMENT: Script to sync WSS contact lists. This script must be executed
' on Outlook startup. It opens all WSS contact list folders in
Outlook
' and sync data with SharePoint
'

Dim strMsg1, strMsg2 As String
Dim olApp As New Outlook.Application
Dim oNS As Outlook.NameSpace
Dim fldFolder As Outlook.MAPIFolder
Dim fldFolder1 As Outlook.MAPIFolder
Dim expContacts As Outlook.Explorer
Dim Response
Dim arrAppVer
On Error Resume Next
arrAppVer = Split(olApp.Version, ".")
If CInt(arrAppVer(0)) 11 Then Exit Sub
strMsg1 = "Outlook should synchronize SharePoint contact lists." &
Chr(13) & Chr(10) & "This can take some minutes" & Chr(13) & Chr(10) &
"Continue?"
strMsg2 = "Contact lists have been synchronized successfully."

Set oNS = olApp.GetNamespace("MAPI")
For Each fldFolder In oNS.Folders
If fldFolder.IsSharePointFolder = True Then
If fldFolder.Folders.Count 1 Then Exit Sub
Response = MsgBox(strMsg1, vbOKCancel + vbInformation +
vbDefaultButton2, "WSS StsSyncAddOn")
If Response = vbOK Then
For Each fldFolder1 In fldFolder.Folders
Set expContacts = fldFolder1.GetExplorer
expContacts.Activate
expContacts.Close
Next
Response = MsgBox(strMsg2, vbOKOnly + vbInformation, "WSS
StsSyncAddOn")
End If
End If
Next
On Error GoTo 0
End Sub

================================================== ===

Sign code with digital signature from your MS CertSrv of your Domain

Use this script to distribute VbaProject.OTM

'================================================= =========================
'
' NAME: VBA OTM distribute
'
' AUTHOR: Shilov Pavel ,

' DATE : 21.02.2006
' VER : 1.0.1
' COMMENT:
'
'================================================= =========================
On Error Resume Next
Dim strPath, strPathToCopy, strFileName, strOfficeKey, res, WSHShell
strPath = "%Yuor share folder%"
strFileName = "Install.cmd"
strOutlookFName1 = "VbaProject.OTM"
strOutlookFName2 = "outcmd.dat"
strOfficeKey =
"HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\ Outlook\UserInfo\UserInfo"
set WSHShell = WScript.CreateObject("WScript.Shell")
strAgent = WSHShell.RegRead (strOfficeKey)
If Err = 0 Then
Set oFS = CreateObject("Scripting.FileSystemObject")
Set oDir = oFS.GetFolder(WSHShell.ExpandEnvironmentStrings("% APPDATA%") &
"\Microsoft\Outlook\")
Set oFiles = oDir.Files
For Each of In oFiles
If (of.Name = strOutlookFName1) Or (of.Name = strOutlookFName2) Then
of.Name = Left(of.Name,Len(of.Name)-3) & "back"
End If
Next
cmd = CHR(34) & strPath & strFileName & Chr(34)
res = WshShell.Run(cmd,0,True)
End If
Set WshShell = Nothing
On Error Goto 0

================================================== =====
Install.cmd

Copy %YourShareFolder%\VbaProject.OTM "%APPDATA%\Microsoft\Outlook\" /y
Copy %YourShareFolder%\outcmd.dat "%APPDATA%\Microsoft\Outlook\" /y

  #5  
Old February 27th 06, 07:19 PM posted to microsoft.public.outlook.contacts
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to fix Stssync and automatically update contact list

So, you found that just displaying the folder was sufficient to update it?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Pavel Shilov" wrote in message ...
Create VbaProject.OTM - VBA project for Outlook in C:\Documents and
Settings\%username%\Application Data\Microsoft\Outlook\

Open Outlook and press Alt+F11 to open VbaProject.OTM

Paste this code into ThisOutlookSession Startup event

================================================== ===
Private Sub Application_Startup()

' NAME: WSS StsSyncAddOn
'
' AUTHOR : Shilov Pavel
' DATE : 14.02.2006
' VERSION : 1.0.1
'
' COMMENT: Script to sync WSS contact lists. This script must be executed
' on Outlook startup. It opens all WSS contact list folders in
Outlook
' and sync data with SharePoint
'

Dim strMsg1, strMsg2 As String
Dim olApp As New Outlook.Application
Dim oNS As Outlook.NameSpace
Dim fldFolder As Outlook.MAPIFolder
Dim fldFolder1 As Outlook.MAPIFolder
Dim expContacts As Outlook.Explorer
Dim Response
Dim arrAppVer
On Error Resume Next
arrAppVer = Split(olApp.Version, ".")
If CInt(arrAppVer(0)) 11 Then Exit Sub
strMsg1 = "Outlook should synchronize SharePoint contact lists." &
Chr(13) & Chr(10) & "This can take some minutes" & Chr(13) & Chr(10) &
"Continue?"
strMsg2 = "Contact lists have been synchronized successfully."

Set oNS = olApp.GetNamespace("MAPI")
For Each fldFolder In oNS.Folders
If fldFolder.IsSharePointFolder = True Then
If fldFolder.Folders.Count 1 Then Exit Sub
Response = MsgBox(strMsg1, vbOKCancel + vbInformation +
vbDefaultButton2, "WSS StsSyncAddOn")
If Response = vbOK Then
For Each fldFolder1 In fldFolder.Folders
Set expContacts = fldFolder1.GetExplorer
expContacts.Activate
expContacts.Close
Next
Response = MsgBox(strMsg2, vbOKOnly + vbInformation, "WSS
StsSyncAddOn")
End If
End If
Next
On Error GoTo 0
End Sub

================================================== ===

Sign code with digital signature from your MS CertSrv of your Domain

Use this script to distribute VbaProject.OTM

'================================================= =========================
'
' NAME: VBA OTM distribute
'
' AUTHOR: Shilov Pavel ,

' DATE : 21.02.2006
' VER : 1.0.1
' COMMENT:
'
'================================================= =========================
On Error Resume Next
Dim strPath, strPathToCopy, strFileName, strOfficeKey, res, WSHShell
strPath = "%Yuor share folder%"
strFileName = "Install.cmd"
strOutlookFName1 = "VbaProject.OTM"
strOutlookFName2 = "outcmd.dat"
strOfficeKey =
"HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\ Outlook\UserInfo\UserInfo"
set WSHShell = WScript.CreateObject("WScript.Shell")
strAgent = WSHShell.RegRead (strOfficeKey)
If Err = 0 Then
Set oFS = CreateObject("Scripting.FileSystemObject")
Set oDir = oFS.GetFolder(WSHShell.ExpandEnvironmentStrings("% APPDATA%") &
"\Microsoft\Outlook\")
Set oFiles = oDir.Files
For Each of In oFiles
If (of.Name = strOutlookFName1) Or (of.Name = strOutlookFName2) Then
of.Name = Left(of.Name,Len(of.Name)-3) & "back"
End If
Next
cmd = CHR(34) & strPath & strFileName & Chr(34)
res = WshShell.Run(cmd,0,True)
End If
Set WshShell = Nothing
On Error Goto 0

================================================== =====
Install.cmd

Copy %YourShareFolder%\VbaProject.OTM "%APPDATA%\Microsoft\Outlook\" /y
Copy %YourShareFolder%\outcmd.dat "%APPDATA%\Microsoft\Outlook\" /y

  #6  
Old March 15th 06, 04:21 PM posted to microsoft.public.outlook.contacts
Pavel Shilov
external usenet poster
 
Posts: 4
Default How to fix Stssync and automatically update contact list

Yes.
It turned out, that it would be the simplest way. And in that case Outlook
has to update WSS Contact List.

I tried to find events or methods that would help me with Outlook STSSync on
MSDN, but I just found how to add contact list using stssync protocol on SPPT
SDK and another basic article about stssync.

It is a pity. My solution isn’t good, but it works.

Thanks, Sue


"Sue Mosher [MVP-Outlook]" wrote:

So, you found that just displaying the folder was sufficient to update it?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Connecting OL2003 but OE Works Raymond Joseph Outlook - Installation 0 February 19th 06 12:27 AM
Outlook test works but real email gets 530 error Wizzer Outlook - Installation 2 February 1st 06 03:00 PM
Problems sending attachments in Outlook 2003, but works through VNC Gavin Hanover Outlook - General Queries 0 January 26th 06 05:14 PM
Comcast-Express works-outlook does not connect-Reason? Jbassion Outlook - Installation 1 January 14th 06 06:38 PM
I can't get Outlook to work on wireless connection, works on deskt Mark Outlook - Installation 3 January 11th 06 03:48 AM


All times are GMT +1. The time now is 10:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.