Set MAPIFolder Homepage Offline Programmatically

S

SeeMing

Hi,

To set a public folder homepage working offline programmatically, the
following code works fine..

oFldr.Update True, True
oFldr.Fields(PR_OFFLINE_FLAGS).Value = iFlag

If (Err.Number = MAPI_E_NOT_FOUND) Then
Err.Clear
oFldr.Fields.Add PR_OFFLINE_FLAGS, iFlag
End If

After doing a full sync (F9), the public folder homepage URL appears
as an entry in the "Items to Synchronize" dialog (in IE, under Tools
-> Syncronize), and the folder homepage is properly sync to IE cache.

However, if I apply the same code on any folder homepages under
"Outlook Today", even after full sync, the entry is not automatically
written to the above dialog. Without this entry, the homepage will not
be sync at all. Any idea? Many thanks.

Rgds.
See-Ming
 
Top