Is InAppFolderSyncObject write-only?

T

Tadwick

I can set the InAppFolderSyncObject property of a folder but I cannot get it?
I get the ambiguous error "The operation failed".

Am I missing something?
 
T

Tadwick

Yes, a delegate shared mailbox calendar folder

My primary mailbox calendar folder does not throw exception
 
T

Tadwick

If it's a bug how does one resolve it? Is it readable some other way eg MAPI
property or in the registry?


FYI - Here's my code....

Public Sub appfolders()
Dim olApp As New Outlook.Application
Dim nsp As Outlook.NameSpace
Dim sycs As Outlook.SyncObjects
Dim syc As Outlook.SyncObject
Dim fdr As Outlook.MAPIFolder
Dim myRecipient As Outlook.Recipient
Dim insync As Boolean

Set nsp = olApp.GetNamespace("MAPI")
Set sycs = nsp.SyncObjects
Set syc = sycs.appfolders
Set myRecipient = nsp.CreateRecipient("John Doe")
myRecipient.Resolve

If myRecipient.Resolved Then
Set fdr = nsp.GetSharedDefaultFolder(myRecipient, olFolderCalendar)
insync = fdr.InAppFolderSyncObject <---- throws error
End If

End Sub
 
Top