Link to home
Start Free TrialLog in
Avatar of marketware
marketware

asked on

Why doesn't Groupwise retrieve all of my appointments?

I have the following code in an attempt retrieve my groupwise appointments, yet it's only getting the first one (see picture attached).  Any ideas why?


GroupwareTypeLibrary.MessageList lst;
GroupwareTypeLibrary.Appointment7 appt;
object filter = "(START_DATE >= " + DateTime.Now.AddDays(-30).ToString("yyyy/MM/dd") + ") AND (APPOINTMENT)" ; 
// filter = (START_DATE >= 2011/03/20) AND (APPOINTMENT)
lst = groupwiseAccount.WorkFolder.Messages.Find(filter);

Open in new window

Groupwise.png
Avatar of marketware
marketware

ASKER

Thank you!!
Avatar of PsiCop
I suspect the lack of response is due to the fact this is mainly a programming question. I'm not a C# coder (I have an allergy to proprietary languages created by abusively monopolistic corporations) nor do I recognize the API.

Knowing a little about how GroupWise is architected, I would suspect the underlying issue has something to do with how the filter method works, and how the Appointments exist in the database. When you create an Appointment in your own Calendar, you "own" the database record, and it exists fully in your user DB. If someone else sends you an Appointment, the actual record exists in their DB, and you get a pointer.
The API in question is Novell's...I kind of guess you were referring to the folks in Redmond.

An Object no matter what language you use to access it has certain properties and methods.  The method above is calling the GroupWise method:

groupwiseAccount.WorkFolder.Messages.Find(filter);

and passing a filter to it.  I'm guessing what I should have done is indicate the actual value of the filter so that maybe we could diagnose what I'm doing wrong with the filter  here is the value of the filter and maybe someone can guide me.  Thanks in advance for any suggestions.

Here is the syntax of the Filter:

(START_DATE >= 2011/05/12) AND (APPOINTMENT)

Thanks all...

Bob
ASKER CERTIFIED SOLUTION
Avatar of PsiCop
PsiCop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
PsiCop,

So the craziest thing just happened.  I went to the code to apply the test you suggested, but before I did, I ran it (just to see if the universe was in alignment), and it works.  I made no changes, but now it works.  Go figure.

Anyway, thank you for your suggestion...I think that you deserve the credit for this one!
I think you must just have a special power where you can get things to work from afar...
*chuckle*

More likely, there was some uninitialized variable somewhere, or something cached. You may have even found a bug in the API (if so, you should be able to reproduce it).
Thanks for the points.
You are welcome!