Hi,

I have just started to work with GroupWise so please excuse me if I am missing something obvious.

I have written some VB.NET code which returns a list of folders, ids and the corresponding item count. (see below)

Code:
Dim req As New WebRefGroupWise.getFolderListRequest
Dim resp As WebRefGroupWise.getFolderListResponse
req.recurse = True
req.parent = "folders"
resp = wsBinding.getFolderListRequest(req)

WriteTrace("Folder Count: " + resp.folders.Length.ToString)
Dim f As WebRefGroupWise.Folder
For Each f In resp.folders
    WriteTrace("Folder Name: " + f.name + "  ID: " + f.id + "   Item Count: " + f.count.ToString)
Next

I get these results:

Code:
Folder Count: 15
Folder Name: Alice Demo	ID: 6.dom1.po1.100.0.1.0.1@15   Item Count: 0
Folder Name: count2	ID: 49A72917.dom1.po1.100.162306A.1.A0B.1@13   Item Count: 0
Folder Name: count3	ID: 49A72921.dom1.po1.100.162306A.1.A0C.1@13   Item Count: 0
Folder Name: count4	ID: 49A729C1.dom1.po1.100.162306A.1.A0D.1@13   Item Count: 0
Folder Name: Count	ID: 4965782A.dom1.po1.100.162306A.1.99C.1@13   Item Count: 0
Folder Name: Mailbox	ID: 7.dom1.po1.100.0.1.0.1@16   Item Count: 2
Folder Name: Sent Items  ID: 19.dom1.po1.100.0.1.0.1@30   Item Count: 0
Folder Name: Calendar	ID: A.dom1.po1.100.0.1.0.1@19   Item Count: 40
Folder Name: Contacts	ID: 1B.dom1.po1.100.0.1.0.1@32   Item Count: 0
Folder Name: Documents	ID: 10.dom1.po1.100.0.1.0.1@23   Item Count: 0
Folder Name: Tasklist	ID: 1A.dom1.po1.100.0.1.0.1@31   Item Count: 0
Folder Name: Work In Progress  ID: D.dom1.po1.100.0.1.0.1@22   Item Count: 0
Folder Name: Cabinet	ID: C.dom1.po1.100.0.1.0.1@21   Item Count: 0
Folder Name: Junk Mail	ID: 1C.dom1.po1.100.0.1.0.1@33   Item Count: 0
Folder Name: Trash	ID: 9.dom1.po1.100.0.1.0.1@18   Item Count: 0

Notice that the Mailbox folder has an item count of 2.

Next I run this piece of code:

Code:
folderRequest.view = "default count"
folderRequest.folderType = WebRefGroupWise.FolderType.Mailbox
folderResponse = wsBinding.getFolderRequest(folderRequest)
WriteTrace("Folder Name: " + folderResponse.folder.name)
WriteTrace("Folder ID: " + folderResponse.folder.id)
WriteTrace("Item Count: " + folderResponse.folder.count.ToString)
I get this result:

Code:
Folder Name: Mailbox
Folder ID: 7.dom1.po1.100.0.1.0.1@16
Item Count: 0
Notice that it returns an item count of 0 for the Mailbox whereas my previous routine returned an item count of 2.

The Folder ID is identical in both cases.

I've obviously done something wrong. Can you point me in the right direction please.