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: 1 Dec 2005 14:21:40 -0800,    group: microsoft.public.exchange2000.development        back       


Create an appointment (not a meeting with members)   
Hello all,

I'm trying to create an appointment in public calendar folder. I do
manage to do this either using WebDAV or CDOEX, but the problem is it
is displayed as a meeting with multiple participants in Outlook (it has
that two-head icon in the calendar). But I'd like to create a simple
event, without recipients, not this meeting request.

I'm using similar code to write the fields :

<cal:location>meetappt Location</cal:location>
<cal:dtstart
dt:dt=""dateTime.tz"">2004-05-13T23:00:00.000Z</cal:dtstart>
<cal:dtend dt:dt=""dateTime.tz"">2004-05-13T23:30:00.000Z</cal:dtend>
<cal:instancetype dt:dt=""int"">0</cal:instancetype>
<cal:busystatus>BUSY</cal:busystatus>
<cal:meetingstatus>CONFIRMED</cal:meetingstatus>
<cal:alldayevent dt:dt=""boolean"">0</cal:alldayevent>
<cal:responserequested dt:dt=""boolean"">1</cal:responserequested>
<cal:reminderoffset dt:dt=""int"">900</cal:reminderoffset>

Thanks for any advice
Lukas Neumann
date: 1 Dec 2005 14:21:40 -0800   author:   Luke Neumann

Re: Create an appointment (not a meeting with members)   
Try adding the apptstateflags property and setting it to 0 this should 
ensure that the MeetingStatus property gets also gets set to 0 eg

xmlns:mapi=""http://schemas.microsoft.com/mapi/""
<mapi:apptstateflags dt:dt=""int"">0</mapi:apptstateflags>

Cheers
Glen

"Luke Neumann"  wrote in message 
news:1133475700.641813.235330@o13g2000cwo.googlegroups.com...
> Hello all,
>
> I'm trying to create an appointment in public calendar folder. I do
> manage to do this either using WebDAV or CDOEX, but the problem is it
> is displayed as a meeting with multiple participants in Outlook (it has
> that two-head icon in the calendar). But I'd like to create a simple
> event, without recipients, not this meeting request.
>
> I'm using similar code to write the fields :
>
> <cal:location>meetappt Location</cal:location>
> <cal:dtstart
> dt:dt=""dateTime.tz"">2004-05-13T23:00:00.000Z</cal:dtstart>
> <cal:dtend dt:dt=""dateTime.tz"">2004-05-13T23:30:00.000Z</cal:dtend>
> <cal:instancetype dt:dt=""int"">0</cal:instancetype>
> <cal:busystatus>BUSY</cal:busystatus>
> <cal:meetingstatus>CONFIRMED</cal:meetingstatus>
> <cal:alldayevent dt:dt=""boolean"">0</cal:alldayevent>
> <cal:responserequested dt:dt=""boolean"">1</cal:responserequested>
> <cal:reminderoffset dt:dt=""int"">900</cal:reminderoffset>
>
> Thanks for any advice
> Lukas Neumann
>
date: Fri, 2 Dec 2005 11:04:04 +1100   author:   Glen Scales [MVP]

Re: Create an appointment (not a meeting with members)   
Thanks a lot, that worked!

Lukas Neumann
date: 1 Dec 2005 23:57:07 -0800   author:   Luke Neumann

Re: Create an appointment (not a meeting with members)   
I regret to say I was ethusiastic too soon.

In Outlook, everything works fine, but when I go to Outlook Web Access,
I can see another problem:

In the calendar, the item is displayed properly, but when I open it,
the form shows current time instead of the Begin and End time. But when
I open the very same item in Outlook, and save it manually, it is OK. I
guess i have to write some additional fields to get this work OK.

Moreover, events created this way are not synchronized with my Pocket
PC (using ActiveSync), even though it looks all right in Outlook.

Thanks in advance
Lukas Neumann
date: 2 Dec 2005 07:05:29 -0800   author:   Luke Neumann

Re: Create an appointment (not a meeting with members)   
The following works okay for me on Exchange 2003 Outlook, OWA, Pocket PC 
2003 and Windows Mobile 5 (just using a desktop sync)

<?xml version="1.0"?><g:propertyupdate xmlns:g="DAV:" 
xmlns:e="http://schemas.microsoft.com/exchange/" 
xmlns:mapi="http://schemas.microsoft.com/mapi/" 
xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:" 
xmlns:cal="urn:schemas:calendar:" 
xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" 
xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
<g:set><g:prop>
<g:contentclass>urn:content-classes:appointment</g:contentclass>
<e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>
<mail:subject>ttttest</mail:subject>
<mail:htmldescription>Let's meet here</mail:htmldescription>
<cal:location>meetappt Location</cal:location>
<cal:dtstart dt:dt="dateTime.tz">2005-12-04T22:24:00Z</cal:dtstart>
<cal:dtend dt:dt="dateTime.tz">2005-12-04T23:24:00Z</cal:dtend>
<cal:instancetype dt:dt="int">0</cal:instancetype>
<cal:busystatus>BUSY</cal:busystatus>
<cal:meetingstatus>CONFIRMED</cal:meetingstatus>
<cal:alldayevent dt:dt="boolean">0</cal:alldayevent>
<cal:responserequested dt:dt="boolean">0</cal:responserequested>
<cal:reminderoffset dt:dt="int">900</cal:reminderoffset>
<cal:timezoneid dt:dt="int">57</cal:timezoneid>
<mapi:apptstateflags dt:dt="int">0</mapi:apptstateflags>
<header:to>gscales</header:to>
<mapi:finvited dt:dt="boolean">1</mapi:finvited>
</g:prop>
</g:set>
</g:propertyupdate>

Watch the timezoneid this is for Sydney you need to find what enum your 
using have a look at the SDK 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_cdotimezoneid_enum.asp.

If your appointment doesn't show up in OWA it usually down to one of the 
properties not being set right OWA will make a query such as

Select
"urn:schemas:calendar:location" AS location,
"urn:schemas:httpmail:subject" AS subject,
"urn:schemas:calendar:dtstart" AS dtstart,
"urn:schemas:calendar:dtend" AS dtend,
"urn:schemas:calendar:busystatus" AS busystatus,
"urn:schemas:calendar:instancetype" AS instancetype,
"urn:schemas:calendar:alldayevent" AS alldayevent,
"urn:schemas:calendar:remindernexttime" AS remindernexttime,
"http://schemas.microsoft.com/mapi/proptag/x10c70003" AS pr_cdormid,
"http://schemas.microsoft.com/exchange/sensitivity" AS sensitivity,
"http://schemas.microsoft.com/mapi/apptstateflags" AS apptstateflags,
"urn:schemas:calendar:uid" AS uid
FROM Scope('SHALLOW TRAVERSAL OF ""')
WHERE
NOT "urn:schemas:calendar:instancetype" = 1
AND ("DAV:ishidden" is Null  OR "DAV:ishidden" = false)
AND "urn:schemas:calendar:dtend" > '2005/12/05 13:00:00'
AND "urn:schemas:calendar:dtstart" < '2005/12/06 13:00:00'
ORDER BY "urn:schemas:calendar:dtstart" ASC

So you need to make sure the appointments you are creating are going to have 
properties that meet this search criteria.

Cheers
Glen

"Luke Neumann"  wrote in message 
news:1133535929.179084.101030@g43g2000cwa.googlegroups.com...
>I regret to say I was ethusiastic too soon.
>
> In Outlook, everything works fine, but when I go to Outlook Web Access,
> I can see another problem:
>
> In the calendar, the item is displayed properly, but when I open it,
> the form shows current time instead of the Begin and End time. But when
> I open the very same item in Outlook, and save it manually, it is OK. I
> guess i have to write some additional fields to get this work OK.
>
> Moreover, events created this way are not synchronized with my Pocket
> PC (using ActiveSync), even though it looks all right in Outlook.
>
> Thanks in advance
> Lukas Neumann
>
date: Mon, 5 Dec 2005 09:34:53 +1100   author:   Glen Scales [MVP]

Re: Create an appointment (not a meeting with members)   
Hello Glen,

I tried the query you gave me, but it is still the same. The main
problem is not that the items are not shown in OWA, but if I open the
item, the startDate and endDate are incorrect - more precisely start
date is current date and end date is half an hour later.

Thanks
Lukas
date: 6 Dec 2005 04:26:19 -0800   author:   Luke Neumann

Re: Create an appointment (not a meeting with members)   
Exchange stores date and times as UTC so the datetime you are posting with 
your propatch should be plus or minus what every your GMT offset is. It 
sounds like you might be trying to post non adjusted times.

Cheers
Glen

"Luke Neumann"  wrote in message 
news:1133871979.240442.51100@g14g2000cwa.googlegroups.com...
> Hello Glen,
>
> I tried the query you gave me, but it is still the same. The main
> problem is not that the items are not shown in OWA, but if I open the
> item, the startDate and endDate are incorrect - more precisely start
> date is current date and end date is half an hour later.
>
> Thanks
> Lukas
>
date: Wed, 7 Dec 2005 09:30:51 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


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