Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Fri, 01 Feb 2008 19:59:16 GMT,    group: microsoft.public.exchange.development        back       


FindItem restriction help Exchange 2007 Web Services   
How do I find a calendar Item that is a recurring appointment, but the range
has no end date? I have tried various restrictions against the recurring
property but none of them seem to be what I want as the recurrence property
has to attributes, Item and Item1, representing the pattern and the range. I
just need to find items that are recurring, but have no end date. Any ideas?
I have tried this, and that property is not valid for that restriction.



FindItemType findItem = new FindItemType();

findItem.Traversal = ItemQueryTraversalType.Shallow;

findItem.ItemShape = new ItemResponseShapeType();

findItem.ItemShape.BaseShape = DefaultShapeNamesType.IdOnly;

findItem.ParentFolderIds = new BaseFolderIdType[] { new
DistinguishedFolderIdType(DistinguishedFolderIdNameType.calendar) };

PathToUnindexedFieldType rec = new PathToUnindexedFieldType();

rec.FieldURI = UnindexedFieldURIType.calendarRecurrence;



IsEqualToType equalTo = new IsEqualToType();

equalTo.Item = rec;

FieldURIOrConstantType constant = new FieldURIOrConstantType();

ConstantValueType constantValue = new ConstantValueType();

constantValue.Value = string.Empty;

constant.Item = constantValue;

equalTo.FieldURIOrConstant = constant;



findItem.Restriction = new RestrictionType();

findItem.Restriction.Item = equalTo;



Obviously, this is not want i want, this would look for CalendarItems that
have a recurrence property of "". I need items that have the property and
the Item1.EndDate is not null.



Thanks All,






--------------------------------------------------------------------------------
~ck
date: Fri, 01 Feb 2008 19:59:16 GMT   author:   CK

Re: FindItem restriction help Exchange 2007 Web Services   
I don't think you will be able to do this with a restriction how Exchange 
stores recurrence information is a little complex and Finditem wont provide 
that level or granularity in a restriction. Your probably better of just 
querying for all recurring appointments and then do some filtering at the 
client side.  Unless the user has a large number of reoccurring appointments 
your performance should be okay.

I guess the other question are you looking for the Master instance or the 
recurring instances in that case you need to use a Calendarview to expand 
the recurring appointment.

Cheers
Glen



"CK"  wrote in message 
news:oSKoj.2592$0w.323@newssvr27.news.prodigy.net...
> How do I find a calendar Item that is a recurring appointment, but the 
> range
> has no end date? I have tried various restrictions against the recurring
> property but none of them seem to be what I want as the recurrence 
> property
> has to attributes, Item and Item1, representing the pattern and the range. 
> I
> just need to find items that are recurring, but have no end date. Any 
> ideas?
> I have tried this, and that property is not valid for that restriction.
>
>
>
> FindItemType findItem = new FindItemType();
>
> findItem.Traversal = ItemQueryTraversalType.Shallow;
>
> findItem.ItemShape = new ItemResponseShapeType();
>
> findItem.ItemShape.BaseShape = DefaultShapeNamesType.IdOnly;
>
> findItem.ParentFolderIds = new BaseFolderIdType[] { new
> DistinguishedFolderIdType(DistinguishedFolderIdNameType.calendar) };
>
> PathToUnindexedFieldType rec = new PathToUnindexedFieldType();
>
> rec.FieldURI = UnindexedFieldURIType.calendarRecurrence;
>
>
>
> IsEqualToType equalTo = new IsEqualToType();
>
> equalTo.Item = rec;
>
> FieldURIOrConstantType constant = new FieldURIOrConstantType();
>
> ConstantValueType constantValue = new ConstantValueType();
>
> constantValue.Value = string.Empty;
>
> constant.Item = constantValue;
>
> equalTo.FieldURIOrConstant = constant;
>
>
>
> findItem.Restriction = new RestrictionType();
>
> findItem.Restriction.Item = equalTo;
>
>
>
> Obviously, this is not want i want, this would look for CalendarItems that
> have a recurrence property of "". I need items that have the property and
> the Item1.EndDate is not null.
>
>
>
> Thanks All,
>
>
>
>
>
>
> --------------------------------------------------------------------------------
> ~ck
>
>
>
date: Mon, 4 Feb 2008 16:00:36 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us