exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FindItem restriction help Exchange 2007 Web Services

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Development
Author Message
CK



Joined: 28 Sep 2007
Posts: 9

PostPosted: Sat Feb 02, 2008 12:59 am    Post subject: FindItem restriction help Exchange 2007 Web Services Reply with quote

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

Archived from group: microsoft>public>exchange>development
Back to top
View user's profile Send private message
Glen Scales [MVP]



Joined: 05 Aug 2007
Posts: 92

PostPosted: Mon Feb 04, 2008 9:00 pm    Post subject: Re: FindItem restriction help Exchange 2007 Web Services Reply with quote

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 $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
>
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Set Appointment Label using Exchange 2007 Web Services? Does anyone know how to set an Appointment Label using Exchange 2007 Web Services? I want to set a color on the item on the calendar. I know its some type of mapi property but I have no idea how to access it or set it. Any ideas? Thanks In Advance, ~ck

Exchange Web Services x-header I'm trying to send an e-mail using Exchange Web Services that has an extra x-header set. I have a working sample that can send the e-mail, but I can't figure out how to add an x-header. How do I do this?

Web services Question about a service Hello, I have some questions regarding the use of web services in Exchange 2007. Is it possible to subscribe to an Exchange 2007 server an receive all messages for all(certain) users. I found articles that a client can access a his mails by posting his cr

Exchange 2007 SP1 SDK Hi all, I installed a few days ago Exchange 2007 SP1 SDK on 64-bit machine with 64-bit Exchange 2007 installed. I wanted to learn how transport agents for Exchange 2007 work. So I built, installed and started an SDK sample named However,

Exchange 2007 eventing This was posted in Subject: "Change MessageClass on Incoming e-mails in a Shared Mailbox" Text:"We have a shared mailbox that recives normal IPM.Note mail - We would like to change that. We are running Exchange 2007 SP
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group