UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Absent Member.
Absent Member.
2301 views

C# Code To Retrieve Values from Mail, Calendar SOAP API

Using the VCSClient Code, I have been able to successfully login to my Groupwise account, retrieve folders / folder names, and even determine that I have 282 appointment items using "getItemsResponse". What I would like to do is "loop" through these "getItemsResponse" list of items and retrieve things like start date, subject, end date, location, etc for each item using C#.

I cannot seem to get this to work. I do see a "calendar.item", but am not sure how to use it in conjunction with "getItemsResponse", or even with the cursor example. Or, if this is even the way to go.

I am using MS Studio 2010 C#. I was able to do something like this with the GroupWise Object API without much trouble. But since this is a new process, I thought it would be prudent to use the newer SOAP interface. My goal is to extract unread mail count, appointment and task details for users for display on a web page. Any and all help would be appreciated getting to the details mentioned above.

Thank you, Jack
Labels (1)
0 Likes
1 Reply
Absent Member.
Absent Member.

I figured it out. I was not aware that items had to be "typecast" to the appropriate item type to access their values.

foreach (gwws.Item i in gwGetItemsResp.items)
{
gwws.CalendarItem c = (gwws.CalendarItem)i;
subject = c.subject;
ofl.WriteLine("Subject " + subject);
}

Jack
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.